Class AsyncExKt

  • All Implemented Interfaces:

    
    public final class AsyncExKt
    
                        
    • 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 <A extends Any, B extends Any> List<B> parallelMap(List<A> $self, Function1<A, B> f, CoroutineScope scope) Will apply a function to each element in a list asynchronously.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • parallelMap

         final static <A extends Any, B extends Any> List<B> parallelMap(List<A> $self, Function1<A, B> f, CoroutineScope scope)

        Will apply a function to each element in a list asynchronously.

        Parameters:
        f - a function that transforms the element in the list to another type
        scope - the coroutine scope to use for execute the asynchronous operation