When it comes to actually using the async features and the asyncio library in a real project, you don’t want to have to constantly worry about what thread you’re running in, what loop is global and whether or not it’s running. You don’t want to and shouldn’t have to worry about whether asyncio or some other async library (like curio) is running in a higher or lower level than your current abstraction layer in order to use asyncio and await syntax correctly.
This library provides simple functions for:
running an async function from a blocking context
running a blocking function from an async context
running a blocking function in the background
running multiple functions in parallel, either asynchronously or in a blocking fashion
running multiple functions in series, either asynchronously or in a blocking fashion
getting/creating and setting/reverting an independent asyncio event loop to use, regardless of thread or thread-global asyncio loop run status.
See the project site for examples, API doc, and more discussion.
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 a_sync-0.3.0.tar.gz.
File metadata
- Download URL: a_sync-0.3.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ded292ac9dffdaad3016c2ab5c0821e00da59a75602bce21804cf00234a8adf9
|
|
| MD5 |
aca16931da8fd7bae8bcbc2147f8ca97
|
|
| BLAKE2b-256 |
e21b62548de10ce64c9d0688dd648a22cb9fe5c7184153a2bd37aa63aa8fa444
|
File details
Details for the file a_sync-0.3.0-py3-none-any.whl.
File metadata
- Download URL: a_sync-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90800df297844fa10407fe55c80f01da2188af0ebeae0fa83d0d1e2ad932d725
|
|
| MD5 |
cdeba514785016934102c12dc1717ab8
|
|
| BLAKE2b-256 |
fa1d08be514a63fdb09b0273aac4957c6a34f294a0c6f0f73b5dcf38304f33c4
|