Tangent.Test.Agent (Tangent v0.2.0) View Source

An agent which must be started in the test environment before Tangent is used in an application.

Link to this section Summary

Link to this section Functions

Link to this function

cast(agent, fun, caller)

View Source
Link to this function

cast(agent, module, fun, args, caller)

View Source
Link to this function

ensure_started!(agent_module)

View Source

Specs

ensure_started!(module()) :: pid() | no_return()
Link to this function

get(agent, fun, timeout, caller)

View Source
Link to this function

get(agent, module, fun, args, timeout, caller)

View Source
Link to this function

get_and_update(agent, fun, timeout, caller)

View Source
Link to this function

get_and_update(agent, module, fun, args, timeout, caller)

View Source

Specs

register(agent :: Tangent.agent(), owner :: pid()) :: :ok

Registers the owner process as the parent of any agent overloads. After registering an overload, any process that is a child of the caller will access a segmented dataset when accessing the agent.

Link to this function

update(agent, fun, timeout, caller)

View Source
Link to this function

update(agent, module, fun, args, timeout, caller)

View Source