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.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35e39f9eb8f716016969a2db33de3937740159e2dc2b2947210a4cd0c00782e1 |
|
MD5 | 98f914c726370647f159f7dc4a58b329 |
|
BLAKE2b-256 | a7fcbb42fceaf1361f6489e802319a777bc8c683045c63fce68c71b95412f98d |