LazyGoal
open class LazyGoal<T>(coroutineContext: CoroutineContext, dependencies: Collection<Goal<*>>, block: suspend () -> T) : Goal<T>
Content copied to clipboard
Parameters
coroutineContext
additional context information
Constructors
LazyGoal
Link copied to clipboard
fun <T> LazyGoal(coroutineContext: CoroutineContext = EmptyCoroutineContext, dependencies: Collection<Goal<*>> = emptyList(), block: suspend () -> T)
Content copied to clipboard
Functions
async
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.