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.3.0.tar.gz
(4.4 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.3.0.tar.gz.
File metadata
- Download URL: wcpan.worker-1.3.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1720b60038960a5d1dcb4cf8b450c6ea4613db31ea7670b8cff15080c1ba510
|
|
| MD5 |
13a05a581436ccabcd9f518c2070382b
|
|
| BLAKE2b-256 |
7a092eafabb2c4fba98d613a6c361725c82c5e93752e5737fa66638ee4e2155b
|
File details
Details for the file wcpan.worker-1.3.0-py3-none-any.whl.
File metadata
- Download URL: wcpan.worker-1.3.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
598796f14b58e466d1d6452bd6f48aa34fd2d701b019af5d7cd68d99ed86109d
|
|
| MD5 |
7ffa8ad00717f59a1a8a5c6d53ec6302
|
|
| BLAKE2b-256 |
698fc84b7d382e21dd8d9a3de1c73055242cec00f9d5a168145e9b44bd6ee0ec
|