-
Notifications
You must be signed in to change notification settings - Fork 14
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
In chipper-startup, prevent further attempts after success #771
Comments
@jonathanolson replied:
|
On slack, I said:
Would this be prohibitively expensive to implement? |
It's not prohibitive, but I find the current approach cleaner and easier to maintain. What is an advantage to the other approach, as it would have more code and more moving parts? |
Leaving self-assigned to implement the fine-grained pattern for comparison. Not sure when I'll get to this, so let me know if timing becomes an issue. |
This is not a priority for me at the moment, unassigning. |
From #764 I said:
(6) It looks like there is a little interference between the
setTimeout
and theaddEventListener( 'resize'
. For instance, ifattemptStart
is initially false, then a timeout is scheduled for 1000ms later, then resize triggers at 500ms, thenattemptStart
is called later unnecessarily. I know at that point it becomes a no-op, but it seems asymmetrical to not have the events types cancel each other. Not sure how much more complicated this would make it though. Something like:For instance, with this patch:
I saw this console.log trace:
Notice that even after resize and started, there is still another attempt to start.
The text was updated successfully, but these errors were encountered: