-
- All Implemented Interfaces:
public final class ParallelRunnerKt
-
-
Method Summary
Modifier and Type Method Description final static <I extends Any> UnitrunInParallel(I inputs, UncaughtExceptionsLogger exceptionsLogger, Boolean remindExceptionsAtTheEnd, SuspendFunction1<I, Unit> block)Runs the given function on each of the given input, each in its own coroutine. -
-
Method Detail
-
runInParallel
final static <I extends Any> Unit runInParallel(I inputs, UncaughtExceptionsLogger exceptionsLogger, Boolean remindExceptionsAtTheEnd, SuspendFunction1<I, Unit> block)
Runs the given function on each of the given input, each in its own coroutine.
Note: Depending on your choice of UncaughtExceptionsLogger, you may need to provide an SLF4J implementation on your classpath to be able to see error logs.
- Parameters:
exceptionsLogger- defines what to do with uncaught exceptions thrown by blockblock- the block to run on the inputs given to run
-
-
-
-