A multithread worker for Tornado
Project description
A multithread worker for Tornado.
from wcpan.worker import AsyncWorker
worker = AsyncWorker()
worker.start()
# this will be run on another thread
result = await worker.do(your_blocking_function)
# do this later
worker.do_later(your_blocking_function)
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
Built Distribution
Close
Hashes for wcpan.worker-1.2.0.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0e5588699fa4e773bf083dede1bc6be59f9e894f4dc0aa496f494552f2bb0e7 |
|
MD5 | bd542e37c828264f1daf847082f1c89d |
|
BLAKE2b-256 | 212f2ea1f4f0eb7114982b7e5209e99ff59058dcc3db7101aa854003141c1b1e |