A concurrent.futures.Executor implementation that runs asynchronous tasks in an asyncio event loop.
Project description
aio-executor
A concurrent.futures.Executor implementation that runs asynchronous tasks in an asyncio loop.
Example usage:
from aio_executor import AioExecutor
async def my_async_function(arg):
# ...
with AioExecutor() as aioexec:
# single invocation
aioexec.submit(my_async_function, 'foo')
# multiple concurrent invocations using "map"
aioexec.map(my_async_function, ['foo', 'bar', 'baz'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aio-executor-0.1.0.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for aio_executor-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df911f148b9ea7b3b60ade598b45e40c97103f2a6c119976ab40ae4bf20b3d9 |
|
MD5 | 869e74bbcbec57385f064764824ad342 |
|
BLAKE2b-256 | 3b03486ed6542a9f3b4de38e99cc9e26556ff7838ef0627ad9d4aa9f027a8f5d |