Skip to content

Watch WICG Scheduling API proposal #6525

Open
@benlesh

Description

@benlesh

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)

Metadata

Metadata

Assignees

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