Packages

Elixir library providing some handy parallel processing facilities.

Current section

Files

Jump to
paratize lib paratize task_options.ex
Raw

lib/paratize/task_options.ex

defmodule Paratize.TaskOptions do
@moduledoc """
Struct holding the configurations for executing the workload in parallel.
"""
@doc """
* size - number of workers, default: the number of CPU cores given by `:erlang.system_info(:schedulers)`.
* timeout - timeout in ms, integer, default: 5000, exit(:timeout,...) if no result is return by any of the workers within the period. To disable timeout, use `:infinity`.
"""
defstruct size: :erlang.system_info(:schedulers), timeout: 5000
end