[Twisted-Python] Asynchronous code in a context manager

meejah meejah at meejah.ca
Fri Mar 23 10:54:04 MDT 2018


Are you using Python3? Then there's "asynchronous context managers". I
finally found a use-case for one in txtorcon, so here's an example:

   http://txtorcon.readthedocs.io/en/latest/txtorcon-controller.html#txtorcon.Tor.onion_authentication

-- 
meejah




More information about the Twisted-Python mailing list