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

AsyncSupport

interface AsyncSupport<R>

Marks environment supporting async operations with post cleaning.

Functions

asyncStack

abstract fun asyncStack(): AsyncStack<R>

setAsyncStack

abstract fun setAsyncStack(oldState: AsyncStack<R>, newState: AsyncStack<R>): Unit

Companion Object Properties

asyncResouce

val asyncResouce: ResourceId<AsyncStack<*>>

Companion Object Functions

initiateAsync

fun <R> initiateAsync(env: R): ActiveAsyncClose<R>

Inheritors

AsyncEnvWrapper

Keeps async status as atomic reference.

class AsyncEnvWrapper<R> : AsyncSupport<R>, Logging