Type guard that returns true if the error is a CancelledFailure,
indicating the workflow was cancelled via handle.cancel().
Use this inside catch blocks to distinguish cancellation from
application errors. Always check with didInterrupt first for
engine control-flow signals, then check isCancellation for
cooperative cancellation.
Type guard that returns
trueif the error is a CancelledFailure, indicating the workflow was cancelled viahandle.cancel().Use this inside
catchblocks to distinguish cancellation from application errors. Always check withdidInterruptfirst for engine control-flow signals, then checkisCancellationfor cooperative cancellation.