dist_agent v0.1.1 DistAgent.OnTick View Source
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t() :: nil | {:timeout, tick_count()} | {:deactivate, tick_count()}
A type describing what a distributed agent does at the subsequent ticks.
Available values are:
nil
- Do nothing.
{:timeout, tick_count}
- Invoke timeout after at least
tick_count
tick intervals. For example,{:timeout, 0}
means that timeout is invoked at the next tick,{:timeout, 1}
means that timeout is invoked at the next next tick, and so on.
- Invoke timeout after at least
{:deactivate, tick_count}
- Deactivate this distributed agent after at least
tick_count
tick intervals. For example,{:deactivate, 0}
means that the agent is deactivated at the next tick,{:deactivate, 1}
means that the agent is deactivated at the next next tick, and so on.
- Deactivate this distributed agent after at least