Packages

c

com.here.platform.data.processing.utils.parallel.Implicits

AsyncMapUnorderedIteratorOps

implicit final class AsyncMapUnorderedIteratorOps[T] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncMapUnorderedIteratorOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncMapUnorderedIteratorOps(iterator: Iterator[T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def mapAsyncUnordered[R](parallelism: Int)(fn: (T) ⇒ Future[R])(implicit executionContext: ExecutionContext): Iterator[R]

    Applies a function to all elements of an iterator and waits on the resulting futures.

    Applies a function to all elements of an iterator and waits on the resulting futures. Up to parallelism futures are run at the same time, using the provided execution context. Elements are emitted as soon as they are ready, therefore it is possible that the transformed elements are not in the same order as in the input iterator.

    parallelism

    Number of futures running at the same time.

    fn

    The function to apply.

    executionContext

    The execution context.

  8. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped