wpool_worker (worker_pool v7.0.0)

View Source

Default instance for wpool_process.

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

Summary

API 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

state()

-opaque state()

API Functions

call(S, M, F, A)

-spec call(wpool:name(), module(), atom(), [term()]) -> term().

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

cast(S, M, F, A)

-spec cast(wpool:name(), module(), atom(), [term()]) -> ok.

Executes M:F(A). in any of the workers of the pool S.