concurrent v0.3.0 Concurrent View Source

Lightweight Enum with concurrency

Link to this section Summary

Functions

Concurrently iterates over an Enum

Concurrently maps over an Enum

Link to this section Functions

Link to this function

each(enum, fun, options \\ []) View Source

Concurrently iterates over an Enum

Examples

iex> Concurrent.each([1, 2, 3], &IO.inspect(&1))
:ok
Link to this function

map(enum, fun, options \\ []) View Source

Concurrently maps over an Enum

Examples

iex> Concurrent.map([1, 2, 3], &(&1 * &1))
[1, 4, 9]