Skip to content

Step

Name Mandatory Description Default Type
⬅️ Input Any input type is accepted. The input of this shard will be given as input for the specified Wire Any
Output ➡️ Outputs the input value, passed through unchanged. Any
Wire No The Wire to schedule and progress. none WireStringNone

The first time Step is called, the specified wire is scheduled. On subsequent calls, the specified Wire's state is progressed before the current Wire continues its execution. This means that a pause in execution of the child Wire will not pause the parent Wire.

Details

The child wire scheduled inherits and uses the context variables of the parent wire. Any changes to said variables will also be reflected on the parent wire.

Child wire is scheduled and executes inline. However, the shard will only progress the state of the wire with each call and relinquish control back to the parent wire if there is any pause or break in the wire's execution. This means that any pauses on the child wire will not pause the parent wire.

Child wire is scheduled on the same mesh as the parent wire.

Examples

1
2
3
4
5
6
@wire(hello {
  Msg("Hello")
})

Detach(hello)
Step(Wire: hello)

[info] [hello] Hello