sealed class AsyncStack<R>
Registry of async cleaning operations.
actions |
val actions: Seq<AsyncClosingAction<R>> |
doOnCleanUp |
fun doOnCleanUp(action: AsyncClosingAction<R>): DirtyAsyncStack<R> |
enterAsync |
open fun enterAsync(): ActiveAsynStack<R> |
performActions |
fun performActions(env: R): R |
onClose |
fun <R> AsyncStack<R>.onClose(f: (R) -> R): DirtyAsyncStack<R> |
ActiveAsynStack |
Ongoing async process. class ActiveAsynStack<R> : AsyncStack<R> |
CleanAsyncStack |
Empty registry. class CleanAsyncStack<R> : AsyncStack<R> |
DirtyAsyncStack |
Something is registered. class DirtyAsyncStack<R> : AsyncStack<R> |