[Twisted-Python] http://www.twistedmatrix.com/documents/howto/time

Boyd Roberts boyd at strakt.com
Thu Aug 29 08:39:53 EDT 2002


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.







More information about the Twisted-Python mailing list