com.koushikdutta.async.future.Cancellable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of androidasync Show documentation
Show all versions of androidasync Show documentation
Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads.
package com.koushikdutta.async.future;
public interface Cancellable {
/**
* Check whether this asynchronous operation completed successfully.
* @return
*/
boolean isDone();
/**
* Check whether this asynchronous operation has been cancelled.
* @return
*/
boolean isCancelled();
/**
* Attempt to cancel this asynchronous operation.
* @return The return value is whether the operation cancelled successfully.
*/
boolean cancel();
}