Skip to content

Signal Effect

This page is auto-generated from src/stdlib.rs. Do not edit it by hand — your changes will be overwritten on the next CI run. To add or update a built-in operation, edit the StdLib::new() registry in src/stdlib.rs.

The Signal effect provides the following built-in operations, wired into the VM and runtime.

Operation Signature Description
Signal.wait wait(name: String) -> Unit Suspend the workflow until the named signal arrives, then resume with unit.

Implementation site: Runtime Host

Signal.wait suspends the actor only when called inside a workflow or durable actor with the runtime enabled. Outside a workflow context (e.g., in a standalone --eval script), it returns nil immediately.