Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

270 B
Raw Blame
use std::time::Duration;

#[cfg(not(target_family = "wasm"))]
pub async fn sleep(duration: Duration) {
    tokio::time::sleep(duration).await
}

#[cfg(target_family = "wasm")]
pub async fn sleep(duration: Duration) {
    crate::time::sleep_wasm::sleep(duration).await
}