StaticGoal

open class StaticGoal<T>(value: T) : Goal<T>

Functions

async
Link copied to clipboard
common
open override fun async(coroutineScope: CoroutineScope): Deferred<T>

Get ongoing computation or start a new one. Does not guarantee thread safety. In case of multi-thread access, could create orphan computations.

reset
Link copied to clipboard
common
open override fun reset()

Reset the computation

Properties

deferred
Link copied to clipboard
common
open override val deferred: Deferred<T>

Returns current running coroutine if the goal is started. Null if the computation is not started.

dependencies
Link copied to clipboard
common
open override val dependencies: Collection<Goal<*>>
value
Link copied to clipboard
common
val value: T

Inheritors

StaticData
Link copied to clipboard