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.0.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wcpan.worker-1.0.0.tar.gz.
File metadata
- Download URL: wcpan.worker-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ceb5f21b084f3bb750e04fe8a41c9b5f946a14247148b4b1d169dbbc34e8557f
|
|
| MD5 |
25b6aa5804d65bc6240086b141543623
|
|
| BLAKE2b-256 |
e24b4b7380f7bf16b3891685b7f74adf15be73a81cddd98cf4663a2af67753c9
|
File details
Details for the file wcpan.worker-1.0.0-py3-none-any.whl.
File metadata
- Download URL: wcpan.worker-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f285327d1ab412a5f243f944d26c265aae56df02a02884a7643d9667bbd58562
|
|
| MD5 |
e60a5c412cb7b1c8d686aed07e802071
|
|
| BLAKE2b-256 |
972d9fd146bf3cdd68ffcaf2edc1738b96e5997ccfb32d354cd35926acbf0285
|