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.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for wcpan.worker-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f285327d1ab412a5f243f944d26c265aae56df02a02884a7643d9667bbd58562 |
|
MD5 | e60a5c412cb7b1c8d686aed07e802071 |
|
BLAKE2b-256 | 972d9fd146bf3cdd68ffcaf2edc1738b96e5997ccfb32d354cd35926acbf0285 |