Skip to content

Tracking Issue for thread::sleep_until #113752

Open
@dvdsk

Description

@dvdsk

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?

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-sleep_until`#![feature(sleep_until)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions