mirror of
https://github.com/async-rs/async-std.git
synced 2025-03-29 04:26:41 +00:00
fix export
This commit is contained in:
parent
1c1c168e1b
commit
06a2fb8c4f
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ mod timer {
|
||||||
pub type Timer = smol::Timer;
|
pub type Timer = smol::Timer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "unstable", feature = "default"))]
|
||||||
pub(crate) fn timer_after(dur: std::time::Duration) -> timer::Timer {
|
pub(crate) fn timer_after(dur: std::time::Duration) -> timer::Timer {
|
||||||
#[cfg(not(target_os = "unknown"))]
|
#[cfg(not(target_os = "unknown"))]
|
||||||
once_cell::sync::Lazy::force(&crate::rt::RUNTIME);
|
once_cell::sync::Lazy::force(&crate::rt::RUNTIME);
|
||||||
|
|
Loading…
Reference in a new issue