mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
Drop futures-timer dev-dependency
This commit is contained in:
+1
-2
@@ -1601,11 +1601,10 @@ impl Lua {
|
||||
///
|
||||
/// ```
|
||||
/// use std::time::Duration;
|
||||
/// use futures_timer::Delay;
|
||||
/// use mlua::{Lua, Result};
|
||||
///
|
||||
/// async fn sleep(_lua: &Lua, n: u64) -> Result<&'static str> {
|
||||
/// Delay::new(Duration::from_millis(n)).await;
|
||||
/// tokio::time::sleep(Duration::from_millis(n)).await;
|
||||
/// Ok("done")
|
||||
/// }
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user