nee-core / dev.neeffect.nee.effects.async / DirtyAsyncStack

DirtyAsyncStack

class DirtyAsyncStack<R> : AsyncStack<R>

Something is registered.

Constructors

<init>

Something is registered.

DirtyAsyncStack(parent: AsyncStack<R>, actions: Seq<AsyncClosingAction<R>>)

Properties

parent

val parent: AsyncStack<R>

Functions

cleanUp

fun cleanUp(env: R): Pair<AsyncStack<R>, R>

enterAsync

fun enterAsync(): ActiveAsynStack<R>

Extension Functions

onClose

fun <R> AsyncStack<R>.onClose(f: (R) -> R): DirtyAsyncStack<R>