Paratize v2.1.5 Paratize.TaskOptions View Source

Struct holding the configurations for executing the workload in parallel.

Link to this section Summary

Functions

  • 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

Returns the actual worker count based on %Paratize.TaskOptions{}

Link to this section Types

Link to this type t() View Source
t() :: %Paratize.TaskOptions{size: :schedulers | non_neg_integer, timeout: :infinity | non_neg_integer}

Link to this section Functions

Link to this function %Paratize.TaskOptions{} View Source (struct)
  • 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.
Link to this function worker_count(task_options) View Source
worker_count(t) :: non_neg_integer

Returns the actual worker count based on %Paratize.TaskOptions{}.