Asynchronous utilities
Explore helpers for cancellable timers and infrastructure-friendly error handling. The example below shows how `sleep` produces an Infra-layer error when aborted.
Cancellable sleep
Start the demo to run a three-second delay. Abort the operation to see the helper reject with an `InfraCanceledError` that preserves the abort reason.
Sleep helper demo
Simulate a cancellable pause that rejects with an infrastructure error when aborted.
- Status
- Idle
- Progress
- 0%
- Elapsed
- 0.0s
- Duration
- 3s