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 hashes)