MCScope
class MCScope(coroutineContext: CoroutineContext, random: RandomGenerator)
Content copied to clipboard
A scope for a Monte-Carlo computations or multi-coroutine random number generation. The scope preserves the order of random generator calls as long as all concurrency calls is done via launch and async functions.
Constructors
MCScope
Link copied to clipboard
Properties
Extensions
launch
Link copied to clipboard
inline fun MCScope.launch(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, crossinline block: suspend MCScope.() -> Unit): Job
Content copied to clipboard
Specialized launch for MCScope.
Sources
common source
Link copied to clipboard