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.0.0.dev3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cace3f555255c192a59c8dc1a84e2a55c6df42148c19f2bfcf1b63948ade21d |
|
MD5 | 2d7dddd467ff8d773f60a6f7f2fff2b2 |
|
BLAKE2b-256 | d1ee1b85b04bd90c19153cca6e285efaa1f51ebc22f807cd2f36b8fd29e6e17c |