ReactiveX / ReactiveX/rxjs

Watch WICG Scheduling API proposal

Open
#6,525 3 comments 5 reactions 1 assignee View on GitHub

@benlesh is already working on this.

Since Jul 15, 2021.

Dominant language
TypeScript
Stars
31.7k
Forks
3k
PR merge metrics
No merged PRs in 30d

Description

The proposal can be found here:

https://github.com/WICG/scheduling-apis

I think this may be a viable future for replacing our schedulers with something vastly more useful and flexible, and (even better) integrated into the platform.

There are so many interesting bits here. In particular I think the TaskController is of particular interest to us, as it has a signal property that can mirror the behavior of AbortSignal, and it has the ability to setPriority for all posted tasks. On such priority includes immediate, which seems to ensure it will happen before everything else, which might make a reasonable replacement for QueueScheduler.

This proposal has already shipped behind a flag in Chrome. No idea (at the moment, I'll need to read more) if it will have an analog of any sort in Node.

Additional reading on the API design is here:

https://docs.google.com/document/d/1xU7HyNsEsbXhTgt0ZnXDbeSXm5-m5FzkLJAT6LTizEI/edit#

cc @shaseley (who I think is the primary author of the proposal)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.