arrow-fx-coroutines / arrow.fx.coroutines / CancelToken

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.

Constructors

<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)

Properties

cancel val cancel: suspend () -> Unit

Functions

invoke suspend fun invoke(): Unit
toString fun toString(): String

Companion Object Properties

unit val unit: CancelToken

Do you like Arrow?

Arrow Org
<