Open
Description
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
- APC: thread::sleep_until, wait until a deadline is reached libs-team#237
- Implementation: Add implementation for thread::sleep_until #113753
- Specialize implementation different target os's
- Final comment period (FCP)1
- Stabilization PR
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
, aSystemTime
or do we support both?