Skip to content

typo in std::thread::sleep #54644

Closed
Closed
@vn971

Description

@vn971

The documentation says: https://doc.rust-lang.org/std/thread/fn.sleep.html

... function will not return early due to a signal being received or a spurious wakeup.

Is that a typo? The function CAN return early right? (due to the reasons outlined)

I can make a fixing PR after confirmation.
UPD: Made a PR as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions