-
Notifications
You must be signed in to change notification settings - Fork 441
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
Remove asap package #969
Remove asap package #969
Conversation
ASAPScheduler was replaced with TimeoutScheduler(1). It is kept in the repository for backwards compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the question I left, LGTM.
lib/schedulers/ASAPScheduler.js
Outdated
}; | ||
// Retained for backwards compatibility | ||
function ASAPScheduler() { | ||
return TimeoutScheduler.bind(this, 1)(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't this just be TimeoutScheduler.call(this, 1);
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...yes, it can 🤦♂
The asap package (and its fork, falcor-asap) have occasionally caused issues with our build pipeline. We're not using the scheduler that relies on this package, so I'm removing it.
I kept the ASAPScheduler in the repository, in case anyone imports that file, but it simply forwards to
new TimeoutScheduler(1)
now. That scheduler may have slightly different behavior, but it should be similar enough for most use cases.If you still need the exact
asap
behavior, there is a workaround: you can provide a custom scheduler to Falcor.Model.