PendingResult

A pending result.

Parameters

Type of result.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val isCancelled: Boolean
Link copied to clipboard
open override val isDone: Boolean

Functions

Link copied to clipboard

Adds a Cancelable that will be called when the pending result is canceled. If the pending result is already canceled the operation will immediately be canceled.

Link copied to clipboard
fun addResultCallback(looper: Looper?, resultCallback: ResultCallback<T>): PendingResult<T>

Adds a result callback.

Link copied to clipboard
open override fun cancel(): Boolean
open override fun cancel(mayInterruptIfRunning: Boolean): Boolean

Cancels the operation.

Link copied to clipboard
open override fun get(): T?
open operator override fun get(l: Long, timeUnit: TimeUnit): T?
Link copied to clipboard
fun getResult(): T?

Returns the result if set.

Link copied to clipboard
open override fun isCancelled(): Boolean

Determines if the operation is canceled.

Link copied to clipboard
open override fun isDone(): Boolean

Determines if the operation is canceled or completed.

Inherited functions

Link copied to clipboard
open fun exceptionNow(): Throwable?
Link copied to clipboard
open fun resultNow(): T?
Link copied to clipboard
open fun state(): Future.State?