Videoplayer example (#1031)

This commit is contained in:
Nikolay Igotti
2017-11-14 19:39:52 +03:00
committed by GitHub
parent 9d7ed9d153
commit 131c99d535
13 changed files with 1033 additions and 0 deletions
@@ -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)]