wpool_utils (worker_pool v6.5.0)

View Source

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

add_defaults(Opts)

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

Adds default parameters to a pool configuration

task_end(TimerRef)

-spec task_end(undefined | reference()) -> ok.

Removes the current task from the worker

task_init(Task, _)

-spec task_init(term(), #{overrun_warning := timeout(), _ => _}) -> undefined | reference().

Marks Task as started in this worker