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.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for wcpan.worker-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03636d0641a062050e3445e732beee68bc23f50bcea17e4838a445aeedca616d |
|
MD5 | 110e13b3ecb3bce00752fb1dad6b9081 |
|
BLAKE2b-256 | 123ceecf833eea6dc3400d8a694094ed8c3964cd219adedbc5e25e3ae16a23a3 |