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 the surrounding onAttach or whileAttached invocation before it can resume.
Effects: requires an attached process, suspends, cancels when the process closes
Runtime behavior: available in suspending attachment code; suspends; cancels when the process closes
Examples
Ignore an unsupported build
if unsupported {
await process.closed()
}