PendingResult

open class PendingResult<T> : Cancelable, Future<V>

A pending result.

Parameters

<T>

Type of result.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open var result: T

Functions

Link copied to clipboard
Adds a Cancelable that will be called when the pending result is canceled.
Link copied to clipboard
open fun addResultCallback(@Nullable looper: Looper, @NonNull resultCallback: ResultCallback<T>): PendingResult<T>
Adds a result callback.
Link copied to clipboard
open fun cancel(mayInterruptIfRunning: Boolean): Boolean
Cancels the operation.
Link copied to clipboard
open fun get(): T
open fun get(l: Long, @NonNull timeUnit: TimeUnit): T
Link copied to clipboard
open fun isCancelled(): Boolean
Determines if the operation is canceled.
Link copied to clipboard
open fun isDone(): Boolean
Determines if the operation is canceled or completed.