I wanted to lurk a while longer before posting again, but I feel I have something worthwhile to add. On Thu, 11 Dec 2003, Keith Dart wrote: > Whew, ok. Here is another one. Perhaps this one is misnamed, but it is > called scheduler and takes over SIGALRM to provide running callback > functions at scheduled intervals or time delays. Also provides an > alternate implementation for "sleep". It operates asynchronously. That > is, your main thread of execution still runs and is interrupted by > SIGALRM and your specified callbacks are run. > > I am aware of the sched module, but that one is for threads, and is not > asynchronous (your main thread blocks in the run() method). A little more than a year ago, I also wrote a threaded scheduler. The code can be found here: http://www.whitebread.org/tidbits/scheduler Since then, I've found the functionality of a threaded scheduler to be very useful, and believe that _a_ threaded scheduler (not necessarily my impementation) would be a nice addition to the standard library. Good suggestion, Keith. :) ::Lurk mode on:: -- Devin devin at whitebread.org http://www.whitebread.org/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4