Packages

p

com.github.takezoe

parallelizer

package parallelizer

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

Type Members

  1. implicit class ParallelIterator[T] extends AnyRef
  2. implicit class ParallelSeq[T] extends AnyRef

Value Members

  1. object Parallel

    Provides tiny utilities for parallelization.

    Provides tiny utilities for parallelization.

    For example, each element of source is proceeded in parallel in the following example.

    val source: Seq[Int] = Seq(1, 2, 3)
    val result: Seq[Int] = Parallelizer.run(source){ i =>
      ...
    }

    Parallelism can be specified as a second parameter. The default value is a number of available processors.

    val result: Seq[Int] = Parallelizer.run(source, 100){ i =>
      ...
    }

    You can use Iterator instead of Seq as a source. This version is useful to handle a very large data.

    val source: Iterator[Int] = ...
    val result: Iterator[Int] = Parallelizer.iterate(source){ i =>
      ...
    }

Inherited from AnyRef

Inherited from Any

Ungrouped