Module daphnia

Use this module to interact with daphnia.

Description

Use this module to interact with daphnia.

Data Types

id()

id() = term()

Function Index

call_task/2Same as call_task/3 with infinity given as timeout.
call_task/3Send a message to a daphnia task identified by Id and wait for the response.
notify_task/2Send a message to a daphnia task identified by Id.
start_task/3Create a new task identified by Id, implemented in the Mod task module, initialized with Args as task argument.

Function Details

call_task/2

call_task(TaskId::id(), Data::term()) -> {ok, term()} | {error, not_callable} | {error, not_found} | {error, Reason::any()}

Same as call_task/3 with infinity given as timeout.

See also: call_task/3.

call_task/3

call_task(TaskId::id(), Data::term(), Timeout::timeout()) -> {ok, term()} | {error, not_callable} | {error, not_found} | {error, Reason::any()}

Send a message to a daphnia task identified by Id and wait for the response.

notify_task/2

notify_task(TaskId::id(), Info::term()) -> ok | {error, not_found} | {error, Reason::any()}

Send a message to a daphnia task identified by Id.

start_task/3

start_task(Id::id(), Mod::module(), Args::term()) -> ok | {error, already_started} | {error, {invalid_task_module, atom()}} | {error, any()}

Create a new task identified by Id, implemented in the Mod task module, initialized with Args as task argument.


Generated by EDoc