asr::future

Function next_tick

Source
pub const fn next_tick() -> NextTick 
Expand description

Yields back to the runtime and continues on the next tick. It’s important to yield back to the runtime to communicate that the auto splitter is still alive.

§Example

loop {
    // TODO: Do something on every tick.
    next_tick().await;
}