edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] clearTimeout
@ 2015-11-04  1:52 Karl Dahlke
  0 siblings, 0 replies; only message in thread
From: Karl Dahlke @ 2015-11-04  1:52 UTC (permalink / raw)
  To: Edbrowse-dev

We've had setTimeout and setInterval for a while,
but I didn't implement clearTimeout, well, because I didn't know it existed.
It's now there, and illustrated by
http://www.eklhad.net/async
It updates line 1 once a second, like a stock price or something,
type rr to rerender, but after 127 seconds the timer
deletes itself and time stops at 127.
The trick was having a timer delete itself while it is still running,
and not lose its brains.

Karl Dahlke

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-04  1:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-04  1:52 [Edbrowse-dev] clearTimeout Karl Dahlke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).