-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Make Timer class available on client side in stead of window.setTimeout #757
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
Comments
This comment was originally written by [email protected] Added Area-Library, Triaged labels. |
Set owner to @vsmenon. |
This comment was originally written by [email protected] Plus the lib already has a stop watch, a clock, buit none of them allow to trigger a method execution. It look strange at first |
This comment was originally written by [email protected] the Scheduler class in GWT is very powerful / flexible - I'd like to see a similar API in dart if possible. |
This comment was originally written by @seaneagan issue #1880 handles moving Timer to dart:core. Only thing left would be removing the following from dart:html... window.setTimeout |
This comment was originally written by @seaneagan Also would want to remove these functions from dart:html's WorkerContext interface. |
It appears Timer is now in dart:isolate. Please advice if / what we need to do on DOM side. Removed Area-DOM label. |
This comment was originally written by [email protected] |
This works now. Added Fixed label. |
This issue was originally filed by [email protected]
I noticed the Timer class runtime/bin is only available in the dart shell on the server. On the client side one has to use the window.setTimeout function.
Wouldn't it be more intuitive if both environments share the same way of starting a timer? I don't see any reason why the Timer class couldn't be built around window.setTimeout in javascript.
The text was updated successfully, but these errors were encountered: