Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timers: add experimental scheduler api #40909

Closed
wants to merge 1 commit into from

Commits on Dec 2, 2021

  1. timers: add experimental scheduler api

    Adds experimental implementations of the yield and wait APIs being
    explored at https://github.com/WICG/scheduling-apis.
    
    When I asked the WHATWG folks about the possibility of standardizing the
    [awaitable versions of setTimeout/setImmediate](whatwg/html#7340)
    that we have implemented in `timers/promises`, they pointed at the work
    in progress scheduling APIs draft as they direction they'll be going.
    While there is definitely a few thing in that draft that have
    questionable utility to Node.js, the yield and wait APIs map cleanly to
    the setImmediate and setTimeout we already have.
    
    Signed-off-by: James M Snell <jasnell@gmail.com>
    jasnell committed Dec 2, 2021
    Copy the full SHA
    3a7ebeb View commit details
    Browse the repository at this point in the history