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.dev5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7475864ff650f2c22d8fb0bbda35ffe410b97f2795b7432b88c62ed4a5f577fe |
|
MD5 | c4733b7867d44e59f51c6765ad699d04 |
|
BLAKE2b-256 | 7b9d1e1e91c5bbd01acc2f486e02f5c784bc4a2bd7550cca8b9d1ba2b30441e0 |