Class representing abstract computation, whose result may become available in the future.
val id: Int
The result of the future computation. Blocks execution until the future is ready. Second attempt to get will result in an error.
val result: T
Blocks execution until the future is ready.
fun <R> consume(code: (T) -> R): R
Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:
fun equals(other: Any?): Boolean
Returns a hash code value for the object. The general contract of hashCode is:
fun hashCode(): Int
Returns a string representation of the object.
fun toString(): String