hashcode-utils-kt / org.hildan.hashcode.utils.runner

Package org.hildan.hashcode.utils.runner

Types

UncaughtExceptionsLogger

Defines what to do with the stack traces of exceptions that are thrown during parallel tasks execution.

enum class UncaughtExceptionsLogger

Functions

runInParallel

Runs the given function on each of the given input, each in its own coroutine.

suspend fun <I> runInParallel(vararg inputs: I, exceptionsLogger: UncaughtExceptionsLogger = UncaughtExceptionsLogger.STDERR, remindExceptionsAtTheEnd: Boolean = true, block: suspend (I) -> Unit): Unit