-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-sleep_until`#![feature(sleep_until)]``#![feature(sleep_until)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
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?
Footnotes
dimo414 and zopsiclebjoernagerjoseluis
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-sleep_until`#![feature(sleep_until)]``#![feature(sleep_until)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.