-
Notifications
You must be signed in to change notification settings - Fork 93
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
How does this code work? #32
Comments
yes, it still works, thanks to Ruslan |
i also want to understand how does it works? do we simply link the script before timer script.? |
Hello. Scripts may create frequent timers
Frequent timers consume more battery
Although One of them is using This library overwrites flowchart TB
subgraph window
a1("window.setInterval(action)")
a2("worker.postMessage()")
a6("worker.onmessage")
a7("action")
end
subgraph worker
a3("self.onmessage")
a4("self.setInterval()")
a5("self.postMessage()")
end
a1-->a2-->a3-->a4-->a5-->a6-->a7
a1-. "action()" .->a6
Library script |
Hello,
many thanks for this hack. But I would like to know how it actually works?
How does the webworker keep javascript timers going?
thank you for any help
The text was updated successfully, but these errors were encountered: