Package 

Class ParallelRunnerKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

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

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

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