Module runtime

Module runtime 

Source

Structs§

TimeoutError
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 TimeoutError if it does not complete within the specified duration.
yield_now
Cooperatively yields to the scheduler/event-loop in a platform-aware way.