Rob Elliot
05/19/2020, 9:36 PMsuspend fun <T> Iterable<T>.forEachParallel(
f: suspend (T) -> Unit
) {
coroutineScope {
forEach { t ->
launch {
f(t)
}
}
}
}
octylFractal
05/19/2020, 9:40 PMRob Elliot
05/19/2020, 9:42 PM