All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.koushikdutta.async.future.Cancellable Maven / Gradle / Ivy

Go to download

Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads.

There is a newer version: 3.1.0
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy