A simple wrapper of library asyncio providing a multiprocessing-library-like coroutine worker pool.
Python >= 3.6
from async_pool import Pool
async def afunc(i):
return i
args = (1,2,3)
with Pool(4) as pool:
results = pool.map(afunc, args) # expects any combination of (1,2,3)