A threading implementation for asynchronous functions.
Project description
AsyncThread
A threading implementation for asynchronous functions.
Usage
from asyncthread import Thread
async def hello_world() -> None:
print("Hello, World!")
thread = Thread(func=hello_world())
thread.start()
thread.join()
from asyncthread import Thread
async def hello_world() -> None:
print("Hello, World!")
thread = Thread(func=[hello_world() for _ in range(1000)], workers=10)
thread.start()
thread.join()
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
AsyncThread-0.0.1.tar.gz
(2.2 kB
view details)
File details
Details for the file AsyncThread-0.0.1.tar.gz
.
File metadata
- Download URL: AsyncThread-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d95325a6d33d7e930efa277888dbedff91a87b9bc859e1e874d4edc31529e45c |
|
MD5 | 795d7f935fd4072962fd64f0c07e56db |
|
BLAKE2b-256 | 5e8ce59d810cc096b430d9ab0c72dddbb2309766b46c714000e4c3727d64b305 |