Package-level declarations

Types

Link copied to clipboard
sealed class Lifetime
Link copied to clipboard
Link copied to clipboard

Lifetime's lifecycle statuses. Lifetime is created in Alive status and eventually becomes Terminated. Status change is one way road: from lower ordinal to higher (Alive ->Canceling ->Terminating ->Terminated).

Link copied to clipboard

Lifetime's termination timeout kind. The actual milliseconds value can be assigned via Lifetime.setTerminationTimeoutMs.

Link copied to clipboard
open class SequentialLifetimes(parentLifetime: Lifetime)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Creates an intersection of some lifetimes: new lifetime that terminate when either one terminates. Created lifetime inherits the smallest terminationTimeoutKind

Link copied to clipboard
fun Lifetime.onTermination(action: () -> Unit)
Link copied to clipboard
operator fun Lifetime.plusAssign(action: () -> Unit)
Link copied to clipboard
Link copied to clipboard
inline fun <T> Lifetime.view(viewable: IViewable<T>, crossinline handler: Lifetime.(T) -> Unit)
Link copied to clipboard
inline fun <T : Any> Lifetime.viewNotNull(viewable: IViewable<T?>, crossinline handler: Lifetime.(T) -> Unit)
Link copied to clipboard