mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-22 10:44:53 +00:00
ac7b98daac
Indirects it via a minimal wrapper which can be trivially patched.
10 lines
282 B
Rust
10 lines
282 B
Rust
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
|
#![doc = include_str!("../README.md")]
|
|
#![deny(missing_docs)]
|
|
|
|
use core::time::Duration;
|
|
|
|
/// Sleep for the specified duration.
|
|
pub fn sleep(duration: Duration) -> impl core::future::Future<Output = ()> {
|
|
tokio::time::sleep(duration)
|
|
}
|