arrow-fx-coroutines / arrow.fx.coroutines / Fiber
interface ~~Fiber~~<A>
Deprecated: Use kotlinx.coroutines.Deferred
Fiber represents a pure value that contains a running suspend () -> A
.
You can think of fibers as being lightweight threads. A Fiber is a concurrency primitive for doing cooperative multi-tasking.
cancel | abstract suspend fun cancel(): Unit |
join | abstract suspend fun join(): A |
invoke | Fiber constructor.operator fun <A> invoke(join: suspend () -> A, cancel: CancelToken ): Fiber <A> |
Do you like Arrow?
✖