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
Wire
String
None
Var(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
Float
Var(Float)
None
Waits for the specified Wire to complete before resuming execution of the current Wire.
Examples
@wire(myWire {
If(
{IsLess(0)}
{"Negative"}
{"Positive"}
)
})
5 | Detach(myWire)
Wait(Wire: myWire Passthrough: false)
Assert.Is("Positive" Break: true)