Asyncio version of concurrent.futures.Executor
Project description
aiolibs-executor
Asyncio version of concurrent.futures executor.
Installaion
pip install aiolibs-executor
Usage
from aiolibs_executor import Executor
async def worker(arg):
return await do_stuff(arg)
async with Executor(num_workers=3) as executor:
futs = [await executor.submit(worker(i)) for i in range(10)]
for fut in futs:
print(await fut)
All submitted worker(i) coroutines are distributed to three concurrent streams,
awaiting returned functions provides a value returned by a coroutine.
TODO: Make comprehensive description of all public Executor's methods.
License
The library is published under Apache 2.0 license.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiolibs_executor-0.0.0.tar.gz.
File metadata
- Download URL: aiolibs_executor-0.0.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
305d4dbf06006e1d4b1aad704bc4cbb71aad6c6cf4d93e83351e9e7e0bc45cf8
|
|
| MD5 |
993c3ef2a451878784ab94f019344f91
|
|
| BLAKE2b-256 |
a6b2ba769bcc2ef56260f932f765a9cc768c87435aaf202fdb5731ea237e1010
|
Provenance
The following attestation bundles were made for aiolibs_executor-0.0.0.tar.gz:
Publisher:
ci.yaml on aio-libs/aiolibs-executor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiolibs_executor-0.0.0.tar.gz -
Subject digest:
305d4dbf06006e1d4b1aad704bc4cbb71aad6c6cf4d93e83351e9e7e0bc45cf8 - Sigstore transparency entry: 170694982
- Sigstore integration time:
-
Permalink:
aio-libs/aiolibs-executor@7a07c92e6f9f7a344a8286b4a246209f0148025e -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/aio-libs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@7a07c92e6f9f7a344a8286b4a246209f0148025e -
Trigger Event:
push
-
Statement type:
File details
Details for the file aiolibs_executor-0.0.0-py3-none-any.whl.
File metadata
- Download URL: aiolibs_executor-0.0.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdc3e31e1d96754007d28db07563a903caa5b2299cd968e430428f6cd97d8cbe
|
|
| MD5 |
9727bb1db6996b4932c3a0ea417a5b30
|
|
| BLAKE2b-256 |
6d7acd175ea8e8f2277709fa070372b7ca0dae039335e9f3911251b88ce7f673
|
Provenance
The following attestation bundles were made for aiolibs_executor-0.0.0-py3-none-any.whl:
Publisher:
ci.yaml on aio-libs/aiolibs-executor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiolibs_executor-0.0.0-py3-none-any.whl -
Subject digest:
cdc3e31e1d96754007d28db07563a903caa5b2299cd968e430428f6cd97d8cbe - Sigstore transparency entry: 170694984
- Sigstore integration time:
-
Permalink:
aio-libs/aiolibs-executor@7a07c92e6f9f7a344a8286b4a246209f0148025e -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/aio-libs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@7a07c92e6f9f7a344a8286b4a246209f0148025e -
Trigger Event:
push
-
Statement type: