Skip to main content

A concurrent.futures.Executor implementation that runs asynchronous tasks in an asyncio event loop.

Project description

aio-executor

Build Status

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


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)

Uploaded Source

Built Distribution

aio_executor-0.1.0-py2.py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page