arrow-effects-data / arrow.effects.internal / ForwardCancelable

ForwardCancelable

class ForwardCancelable

A placeholder for a CancelToken that will be set at a later time, the equivalent of a Promise<ForIO, CancelToken<ForIO>>. Used in the implementation of bracket, see IOBracket.

Constructors

<init> ForwardCancelable()
A placeholder for a CancelToken that will be set at a later time, the equivalent of a Promise<ForIO, CancelToken<ForIO>>. Used in the implementation of bracket, see IOBracket.

Functions

cancel fun cancel(): CancelToken<ForIO>
complete fun complete(value: CancelToken<ForIO>): Unit

Extension Functions

liftIO fun <A> A.liftIO(): IO<A>