View Source wpool_worker (worker_pool v6.2.0)

Default instance for wpool_process

It is a module that implements a very simple RPC-like interface.

Link to this section Summary

Functions

Returns the result of M:F(A) from any of the workers of the pool S
Executes M:F(A) in any of the workers of the pool S

Link to this section Types

-type from() :: {pid(), reference()}.
-opaque state()

Link to this section Functions

-spec call(wpool:name(), module(), atom(), [term()]) -> term().
Returns the result of M:F(A) from any of the workers of the pool S
-spec cast(wpool:name(), module(), atom(), [term()]) -> ok.
Executes M:F(A) in any of the workers of the pool S