You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Yep, I'm driving this project. A little more info:
That doc you linked was the first iteration of postTask(), so it's now a bit outdated. The most up-to-date info for scheduler.postTask() is the explainer (and optionally spec).
We're aiming to shippostTask() soon, hopefully in Chrome M94
postTask() is the first thing we want to ship, but have plans to do more in the broader scheduling space
There was some preliminary discussion on plans for adding this to Node here
As I mentioned here, we'd be interested to hear more about your use cases. We do want the scheduler to be something we evolve over time to cover more use cases. Maybe it would make sense to have a higher-bandwidth conversation? I'm always interested to hear about how frameworks are thinking about scheduling.
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 asignal
property that can mirror the behavior ofAbortSignal
, and it has the ability tosetPriority
for all posted tasks. On such priority includesimmediate
, which seems to ensure it will happen before everything else, which might make a reasonable replacement forQueueScheduler
.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)
The text was updated successfully, but these errors were encountered: