Working with Async Context Manager

Mohamed Mustapha Tahrioui · Apress eBooks · 2019

Context managers provide a convenient API to govern a runtime context. They expose the ability to hook into entering the context manager scope and exit it. Given that asyncio extends the language with the possibility of execution suspension, it becomes evident that a synchronous context manager cannot interface with the event loop in a seamless fashion.

Read the paper · More papers on PaperTik