Skip to content

Wait

Name Mandatory Description Default Type
⬅️ Input Any input type is accepted. The input value will either pass through unchanged or be ignored. None
Output ➡️ If Passthrough is true, this shard outputs the input value, passed through unchanged. Otherwise, it outputs the output of the Wire it waited for. Any
Wire No The Wire to wait for. none WireStringNoneVar(Wire)
Passthrough No If set to true, outputs the input value, passed through unchanged. false Bool
Timeout No The optional amount of time in seconds to wait for the specified Wire to complete. If the specified time elapses before the specified Wire is complete, the current Wire will fail with a Timeout error. none FloatVar(Float)None

Waits for the specified Wire to complete before resuming execution of the current Wire.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
@wire(myWire {
  If(
    {IsLess(0)}
    {"Negative"}
    {"Positive"}
  )
})

5 | Detach(myWire)
Wait(Wire: myWire Passthrough: false)
Assert.Is("Positive" Break: true)