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

Intercepts all Agent calls and breaks them.

Link to this section Summary

Link to this section Types

Link to this section Functions

Specs

cast(agent(), (state() -> state())) :: :ok
Link to this function

cast(agent, module, fun, args)

View Source

Specs

cast(agent(), module(), atom(), [term()]) :: :ok
Link to this function

get(agent, getter, timeout)

View Source

Specs

get(agent(), getter :: (state() -> a), timeout :: integer()) :: a when a: var
Link to this function

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

View Source

Specs

get(agent(), module(), atom(), [term()], timeout()) :: any()
Link to this function

get_and_update(agent, fun, timeout)

View Source

Specs

get_and_update(agent(), (state() -> {a, state()}), timeout :: integer()) :: a
when a: var
Link to this function

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

View Source

Specs

get_and_update(agent(), module(), atom(), [term()], timeout :: integer()) ::
  any()
Link to this function

start_link(caller_module, fun, options)

View Source

Specs

start_link(module(), (() -> term()), GenServer.options()) :: Macro.t()
Link to this function

start_link(caller_module, module, fun, args, options)

View Source

Specs

start_link(module(), module(), atom(), [any()], GenServer.options()) ::
  Macro.t()
Link to this function

stop(agent, reason, timeout)

View Source

Specs

stop(agent(), reason :: term(), timeout :: integer()) :: :ok
Link to this function

update(agent, fun, timeout)

View Source

Specs

update(agent(), (state() -> state()), timeout :: integer()) :: :ok
Link to this function

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

View Source

Specs

update(agent(), module(), atom(), [term()], timeout :: integer()) :: :ok