simple_pool v0.1.4 SimplePool

Documentation for SimplePool.

Summary

Functions

Takes an enumerable and for every chuck it maps over the collection and performs the given function asynchronously

iex(1)> SimplePool.chunk_async([1,2,3,4,5,6,7,8,9,10], fn(n) -> n * 2 end, 3)
[2, 4, 6, 8, 10, 12, 14, 16, 18]

Functions

chunk_async(enumerable, fun, size)
chunk_async(Enum.t, (any -> any), integer) :: list

Takes an enumerable and for every chuck it maps over the collection and performs the given function asynchronously

iex(1)> SimplePool.chunk_async([1,2,3,4,5,6,7,8,9,10], fn(n) -> n * 2 end, 3)
[2, 4, 6, 8, 10, 12, 14, 16, 18]