Skip to content

Add a sleep function to the Core #77

Closed

Description

@newpavlov

It seems like a pretty fundamental function, which is currently missing from the Core. It could be as simple as sleep(uint64_t nanos).

Activity

  1. sunfishcode commented on Aug 19, 2019

    @sunfishcode
    Member

    I'm the current API, the way to implement sleep is to use poll_oneoff, polling for a single __WASI_EVENTTYPE_CLOCK event.

  2. newpavlov commented on Aug 19, 2019

    @newpavlov
    Author

    Ah, good to know. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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