View Source wpool_utils (worker_pool v6.4.0)

Common functions for wpool_process and other modules.

Summary

Functions

Adds default parameters to a pool configuration

Removes the current task from the worker

Marks Task as started in this worker

Functions

-spec add_defaults([wpool:option()] | wpool:options()) -> wpool:options().

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