arrow-fx-coroutines / arrow.fx.coroutines / CancelToken
inline class ~~CancelToken~~
Deprecated: CancelToken is deprecated together with Arrow Fx’s old builders in favor of KotlinX’s suspendCoroutineCancellable builder
Inline marker to mark a CancelToken, This allows for clearer APIs in functions that expect a CancelToken to be returned.
<init> | Inline marker to mark a CancelToken, This allows for clearer APIs in functions that expect a CancelToken to be returned.CancelToken(cancel: suspend () -> Unit ) |
cancel | val cancel: suspend () -> Unit |
invoke | suspend fun invoke(): Unit |
toString | fun toString(): String |
unit | val unit: CancelToken |
Do you like Arrow?
✖