skip to navigation
skip to content

asyncio-contextmanager 1.0.1

Decorator that turns async generator functions into async context managers.

Decorator that turns async generator functions into async context managers.

Installation

Supported versions of python: “3.6+“ (since async generators were introduced in python 3.6)

pip install asyncio-contextmanager

Usage

Usage is straightforward and simple:

from aiocontext import async_contextmanager

@async_contextmanager
async def foo():
    yield 'Foo!'
 
File Type Py Version Uploaded on Size
asyncio-contextmanager-1.0.1.tar.gz (md5) Source 2017-03-05 2KB