async helper library.
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for a_sync-0.4.0.macosx-10.11-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d78aa60fc004f6738607bb2be303df5f7ccc1527673004f2c510af7e0e48743 |
|
MD5 | d04142f25c69d151cd02b8c2f1ba8080 |
|
BLAKE2b-256 | 0e6c213cd6ab74ffd6ff51ef14d3cc056133777ab2eebff37c2a5746707700fb |