parallelProcess

inline suspend fun EvolveScope<*, *>.parallelProcess(parallelismLimit: Int, startIteration: Int, endIteration: Int, crossinline action: suspend (iteration: Int, random: Random) -> Unit)

Iterative parallel process action from startIteration to endIteration.

Parameters

parallelismLimit

limit of parallel workers

action

action will be executed on parallel mode


inline suspend fun EvolveScope<*, *>.parallelProcess(parallelismLimit: Int, startIteration: Int, endIteration: Int, step: Int, crossinline action: suspend (iteration: Int, random: Random) -> Unit)

Iterative parallel process action from startIteration to endIteration with step.

Parameters

parallelismLimit

limit of parallel workers

action

action will be executed on parallel mode