asyncify 0.10.0

Last updated:

0 purchases

asyncify 0.10.0 Image
asyncify 0.10.0 Images
Add to Cart

Description:

asyncify 0.10.0

asyncify




TLDR: Sync 2 Async decorator
Install: pip install asyncify
Usage:
import asyncify

# OR
from asyncify import asyncify
from asyncify import run # asyncio.run polyfill for python36


def add(a, b):
return a + b


assert add(1, 2) == 3


@asyncify
def add_async(a, b):
return a + b


res = await add_async(1, 2)
assert res == 3

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.