inline class Future<T>
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
A FutureState of this future
val state: FutureState
Blocks execution until the future is ready.
fun <R> consume(code: (T) -> R): R
Returns a string representation of the object.
fun toString(): String
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-future/index.html