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.2.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for wcpan.worker-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 480f383522c51a4292db06e1de97097cb31d01c004623880fe16abe593ed8b14 |
|
MD5 | 27aef4e3705ae4eb628dd06859b3a019 |
|
BLAKE2b-256 | acd339284e32ea2c1e3c805d152d76631dafe2de9016c5e53fb7253b151882bf |