Package 

Class ParallelRunnerKt

    • Method Summary

      Modifier and Type Method Description
      final <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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • runInParallel

         final <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 block
        block - the block to run on the inputs given to run