Feature gate: #![feature(sleep_until)]
This is a tracking issue for the thread::sleep_until method. It pauses the current thread until a given deadline.
Public API
// std::thread
pub fn sleep_until(deadline: Instant);
Steps / History
Unresolved Questions
- Clock used: should the clock be the same as
thread::sleep, something different or passed
in by the user?
- Deadline type: should the argument be an
Instant, a SystemTime or do we support both?
Feature gate:
#![feature(sleep_until)]This is a tracking issue for the
thread::sleep_untilmethod. It pauses the current thread until a given deadline.Public API
Steps / History
clock_nanosleep: Specialize sleep_until implementation for unix (except mac) #141829sleep_untilon Apple platforms #151004sleep_untilon Motor and VEX #151538sleep_untilfor Fuchsia #152617Unresolved Questions
thread::sleep, something different or passedin by the user?
Instant, aSystemTimeor do we support both?Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩