TaskInterface

This is the public interface for Task which represents the result of an asynchronous computation.

Inheritors

Functions

Link copied to clipboard
abstract fun getError(): Exception?
Link copied to clipboard
abstract fun getResult(): TResult?
Link copied to clipboard
abstract fun isCancelled(): Boolean
Link copied to clipboard
abstract fun isCompleted(): Boolean
Link copied to clipboard
abstract fun isFaulted(): Boolean
Link copied to clipboard
abstract fun waitForCompletion()

Blocks until the task is complete.

abstract fun waitForCompletion(duration: Long, timeUnit: TimeUnit?): Boolean

Blocks until the task is complete or times out.