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()
Release files for AsyncThread 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| AsyncThread-0.0.1.tar.gz | 2.2 kB | Details |
Release files / AsyncThread-0.0.1.tar.gz
| Download URL | AsyncThread-0.0.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d95325a6d33d7e930efa277888dbedff91a87b9bc859e1e874d4edc31529e45c
|
|
BLAKE2b-256 checksum How to use checksums |
5e8ce59d810cc096b430d9ab0c72dddbb2309766b46c714000e4c3727d64b305
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|