Module time

Source

Structs§

Duration
Copyright 2024 MaidSafe.net limited.
Instant
Copyright 2024 MaidSafe.net limited.
Interval
Interval returned by interval and interval_at.
SystemTime
Copyright 2024 MaidSafe.net limited.

Constants§

UNIX_EPOCH
Copyright 2024 MaidSafe.net limited.

Functions§

interval
Creates new Interval that yields with interval of period. The first tick completes immediately. The default MissedTickBehavior is Burst, but this can be configured by calling set_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.