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 wanted to submit this before submitting the HR pull request to avoid confusion.
When using Object.keys() to populate the scheduled array in processQueue() we can't trust that V8 will return an array that is sorted by key. Since temporal checks the last member of that array to see if there is anything left in the queue that needs to be run, temporal checks the last member added, not the last member by the scheduled time to execute.
In other words, Temporal assumes that tasks are added in the order that they are expected to execute.
I wanted to submit this before submitting the HR pull request to avoid confusion.
When using
Object.keys()
to populate thescheduled
array inprocessQueue()
we can't trust that V8 will return an array that is sorted by key. Since temporal checks the last member of that array to see if there is anything left in the queue that needs to be run, temporal checks the last member added, not the last member by the scheduled time to execute.In other words, Temporal assumes that tasks are added in the order that they are expected to execute.
For example, this works:
But this does not:
Here's the offending code:
The text was updated successfully, but these errors were encountered: