Structs§
- Timeout
Error - Timeout error returned when an operation exceeds the allotted duration.
Functions§
- now
- Returns the current system time in a platform-aware way.
- sleep
- Asynchronously waits for the provided duration in a platform-compatible way.
- spawn_
detached - Platform-independent helper to spawn an async task that runs in the background.
- with_
timeout - Runs the provided future and resolves with
TimeoutErrorif it does not complete within the specified duration. - yield_
now - Cooperatively yields to the scheduler/event-loop in a platform-aware way.