pub async fn sleep(duration: Duration)
Sleep for the specified duration.
This is a cross-platform sleep implementation that works on both wasm32 and non-wasm32 targets.