View Source wpool_worker (worker_pool v6.4.0)

Default instance for wpool_process

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

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

Types

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

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