View Source wpool_utils (worker_pool v6.1.0)

Common functions for wpool_process and other modules.

Link to this section Summary

Functions

Adds default parameters to a pool configuration
Removes the current task from the worker
Marks Task as started in this worker

Link to this section Functions

-spec add_defaults([wpool:option()]) -> [wpool:option()].
Adds default parameters to a pool configuration
-spec task_end(undefined | reference()) -> ok.
Removes the current task from the worker
-spec task_init(term(), #{overrun_warning := timeout(), _ => _}) -> undefined | reference().
Marks Task as started in this worker