Structs§
- Duration
- Copyright 2024 MaidSafe.net limited.
- Instant
- Copyright 2024 MaidSafe.net limited.
- Interval
- Interval returned by
interval
andinterval_at
. - System
Time - Copyright 2024 MaidSafe.net limited.
Constants§
- UNIX_
EPOCH - Copyright 2024 MaidSafe.net limited.
Functions§
- interval
- Creates new
Interval
that yields with interval ofperiod
. The first tick completes immediately. The defaultMissedTickBehavior
isBurst
, but this can be configured by callingset_missed_tick_behavior
. - sleep
- Waits until
duration
has elapsed. - spawn
- Spawns a new asynchronous task, returning a
JoinHandle
for it. - timeout
- Requires a
Future
to complete before the specified duration has elapsed.