Lazy Goal
open class LazyGoal<T>(coroutineContext: CoroutineContext = EmptyCoroutineContext, val dependencies: Collection<Goal<*>> = emptyList(), val block: suspend () -> T) : Goal<T>
Parameters
coroutine Context
additional context information
Constructors
Link copied to clipboard
constructor(coroutineContext: CoroutineContext = EmptyCoroutineContext, dependencies: Collection<Goal<*>> = emptyList(), block: suspend () -> T)
Functions
Link copied to clipboard
Get ongoing computation or start a new one. Does not guarantee thread safety. In case of multi-thread access, could create orphan computations. If GoalExecutionRestriction is present in the coroutineScope context, the call could produce a error a warning depending on the settings.