Certainly. You can use asyncio_extras for that: http://pythonhosted.org/asyncio_extras/#asyncio-extras-contextmanager

01.11.2016, 18:15, Federico Marani kirjoitti:
Has anyone tried to build an asynchronous version of @contextmanager? Is it even possible... given the use of yield?


_______________________________________________
Async-sig mailing list
Async-sig@python.org
https://mail.python.org/mailman/listinfo/async-sig
Code of Conduct: https://www.python.org/psf/codeofconduct/

_______________________________________________
Async-sig mailing list
Async-sig@python.org
https://mail.python.org/mailman/listinfo/async-sig
Code of Conduct: https://www.python.org/psf/codeofconduct/

Reply via email to