Have you thought of getting the callLater() method to return an object with a cancel() method?
Eg:
from twisted.internet import reactor
def f(): print "I'll never run."
call = reactor.callLater(5, f) call.cancel()
Other methods could be added and both would reduce reactor's namespace.
Modification of the arguments or re-scheduling the time could be such methods to add.
Boyd Roberts wrote:
Have you thought of getting the callLater() method to return an object with a cancel() method?
That is more consistent with the way other reactor APIs work, and would be another step towards supporting multiple reactors - we should probably do this at some point (patches welcome).
Could you add a wishlist item at our bugtracker so this doesn't get lost? http://sourceforge.net/tracker/?group_id=49387&atid=456015
Itamar Shtull-Trauring wrote:
Could you add a wishlist item at our bugtracker so this doesn't get lost? http://sourceforge.net/tracker/?group_id=49387&atid=456015
Done, but it got submitted by 'nobody' as I had yet to create yet another profile ...
I hate that.
Boyd Roberts wrote:
Done, but it got submitted by 'nobody' as I had yet to create yet another profile ...
I hate that.
Thanks.
Glyph and Allen are hard at work at creating a decent issue tracker so we don't have to use sourceforge. But a bad tracker is better than no tracker.
On Thu, Aug 29, 2002 at 03:08:16PM +0200, Boyd Roberts wrote:
Itamar Shtull-Trauring wrote:
Could you add a wishlist item at our bugtracker so this doesn't get lost? http://sourceforge.net/tracker/?group_id=49387&atid=456015
Done, but it got submitted by 'nobody' as I had yet to create yet another profile ...
I hate that.
Posted a followup, which mainly consists of this url: http://meson.dyndns.org:8080/cancelCallLater.diff
I'll take a look at cReactor a little later and see if the second part of the change is within my skills.
Jp