Skip to content

Spawn

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 specific copy of the Wire that was scheduled. Wire
Wire No The Wire to schedule and run asynchronously none NoneWire[Shard]

Schedules the specified Wire and runs it asynchronously. The current Wire will continue its execution independently of the specified Wire. Unlike Detach, a copy of the specified Wire is scheduled every time the shard is called.

Examples

1
2
3
4
5
6
@wire(logic {
  IsMore(10) | Or | IsLess(0)
})

11 | Spawn(logic) >= ccc
Wait(ccc) | Assert.Is(true Break: true)