SplitScript reference / Process / closed
Process.closed
Method
Process.closed() -> async Never
Ignores the current attachment until the process closes.
This suspension never closes or detaches the process itself and never completes normally. When the process closes, the automatic process lifetime boundary cancels onAttach before it can resume.
Effects: requires an attached process, suspends, cancels when the process closes
Runtime behavior: available only in onAttach; suspends; cancels when the process closes
Examples
Ignore an unsupported build
if unsupported {
await process.closed()
}