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
wcpan.worker-1.0.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for wcpan.worker-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e0bc094ff8f5ff67dcae9877143d5e6ce26e92d4997c43aec4129ae979d8ba1 |
|
MD5 | 78e13d83cafb36f3c2dfa204107464eb |
|
BLAKE2b-256 | 1f2df5ec801d368fc5449e2f358ad35c833038b832762601fb6aec8383eb0427 |