Videoplayer example (#1031)
This commit is contained in:
@@ -101,6 +101,10 @@ class Future<T> internal constructor(val id: FutureId) {
|
||||
throw IllegalStateException("Future is cancelled")
|
||||
}
|
||||
|
||||
fun result(): T {
|
||||
return consume { it -> it }
|
||||
}
|
||||
|
||||
val state: FutureState
|
||||
get() = FutureState.values()[stateOfFuture(id)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user