Toolbox.Runtime.RuntimeInstruction (toolbox v1.0.0)
Struct produced by scenario representing instruction for runtime.
Link to this section Summary
Functions
Creates runtime instruction to register unit timeout from a message.
Creates runtime instruction to register unit timeout by giving the target time and message.
Creates runtime instruction to start incident process in server based runtime.
Link to this section Types
@type t() :: %Toolbox.Runtime.RuntimeInstruction{ body: Toolbox.Runtime.RuntimeInstruction.Timeout.t() | Toolbox.Runtime.RuntimeInstruction.StartIncident.t() }
Struct produced by scenario representing instruction for runtime.
Link to this section Functions
Link to this function
register_timeout(timeout_message)
Creates runtime instruction to register unit timeout from a message.
Link to this function
register_timeout(timeout, timeout_message)
Creates runtime instruction to register unit timeout by giving the target time and message.
Note that the timeout
and timeout_message.timestamp
should specify the same timestamp, unless
unexpected things can happen.
Link to this function
start_incident(incident_id, timestamp, template, attributes, subscriptions, actors)
Creates runtime instruction to start incident process in server based runtime.