[Python-ideas] Async API

Laurens Van Houtven _ at lvh.cc
Fri Oct 26 17:52:49 CEST 2012


err, I suppose the missing bit there is that you'll probably want to:

reactor.callLater(timeout, d.cancel)

As opposed to calling d.cancel() directly. (That snippet was in
bpython-urwid with the reactor running in the background, but I doubt it'd
work well anywhere else outside of manholes :))

cheers
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121026/9725fbc8/attachment.html>


More information about the Python-ideas mailing list