matrix_sdk_base::sleep

Function sleep

Source
pub async fn sleep(duration: Duration)
Expand description

Sleep for the specified duration.

This is a cross-platform sleep implementation that works on both wasm32 and non-wasm32 targets.