Skip to content

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

Closed
DartBot opened this issue Dec 8, 2011 · 10 comments
Closed
Assignees
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.

Comments

@DartBot
Copy link

DartBot commented Dec 8, 2011

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.

@DartBot
Copy link
Author

DartBot commented Dec 9, 2011

This comment was originally written by [email protected]


Added Area-Library, Triaged labels.

@dgrove
Copy link
Contributor

dgrove commented Dec 9, 2011

Set owner to @vsmenon.
Removed Area-Library label.
Added Area-UI label.

@DartBot
Copy link
Author

DartBot commented Dec 10, 2011

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

@DartBot
Copy link
Author

DartBot commented Feb 17, 2012

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.

@DartBot
Copy link
Author

DartBot commented Mar 12, 2012

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
  window.setInterval
  window.clearTimeout
  window.clearInterval

@vsmenon
Copy link
Member

vsmenon commented Apr 12, 2012

Removed Area-UI label.
Added Area-DOM label.

@DartBot
Copy link
Author

DartBot commented Apr 24, 2012

This comment was originally written by @seaneagan


Also would want to remove these functions from dart:html's WorkerContext interface.

@vsmenon
Copy link
Member

vsmenon commented Jun 22, 2012

It appears Timer is now in dart:isolate. Please advice if / what we need to do on DOM side.


Removed Area-DOM label.
Added Area-Library label.

@DartBot
Copy link
Author

DartBot commented Jun 22, 2012

This comment was originally written by [email protected]

@sethladd
Copy link
Contributor

This works now.


Added Fixed label.

@DartBot DartBot added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. labels Aug 16, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
Projects
None yet
Development

No branches or pull requests

4 participants