Skip to content

Wait

Name - Description Default Type
<input>
<output> Any
Wire The wire to wait. None WireString&Wire
Passthrough The output of this shard will be its input. false Bool
Timeout The optional amount of time in seconds to wait for the wire to complete, if the time elapses the wire will be stopped and the flow will fail with a timeout error. None Float&Float

Waits for another wire to complete before resuming execution of the current wire.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
(defwire myWire
  (If (IsLess 0) (-> "Negative") (-> "Positive")))

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