Skip to content

task sleep #3455

Closed
Closed
@jesse99

Description

@jesse99

There needs to be a way to put a task to sleep. Currently there is libc::sleep which is awful because it causes the thread to sleep which will often affect multiple tasks, and uv::sleep which is a bit annoying because it drags in libuv.

Unless it's easy to drop in a lighter weight task sleep perhaps the answer, for now, is to have a task::sleep which delegates to uv::sleep.

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