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.1.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for wcpan.worker-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eaa443a3f33681902c216bb071a218238e77fe068a356434fbab50a09ead655 |
|
MD5 | a536303d4e544d2b256f7b85bde1034c |
|
BLAKE2b-256 | 9c5b69c57377e3fc6ab722c9cb4239b9d4d1fca21bc1b14844d613f6a5362457 |