Cancels the scope when used with explicit resource management.
Requests cancellation and waits for this scope to close. Expected cancellation resolves.
Promise that resolves after expected cancellation or rejects when the scope closes with a non-cancellation failure.
ReadonlyclosedPromise that settles when this scope closes.
Starts a routine owned by this scope. Non-cancellation failures from the launched routine propagate to this scope. Cancellation remains local to the launched routine.
Optionaloptions: RunOptionsStateful promise for the launched routine result and lifecycle state.
ReadonlystatusCurrent lifecycle state for this scope.
Long-lived scope for launching and canceling related routines.