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

An agent which will be started in the test environment in place of Agent.

Link to this section Summary

Functions

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 section Functions

Link to this function

ensure_started!(agent_module)

View Source

Specs

ensure_started!(module()) :: pid() | no_return()

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.