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 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.1.0.tar.gz.
File metadata
- Download URL: wcpan.worker-1.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f22c05423a7f65c5aae5af9ed7e2f17f0c60dd2c4719978599d00b1d33d7f301
|
|
| MD5 |
4b148c2bc2ee51ea45bf78a1bea06948
|
|
| BLAKE2b-256 |
78cd99a8b123ad9cbdb7023db5a01b257848f9aaef9cfbba77e848569dbbf7f4
|
File details
Details for the file wcpan.worker-1.1.0-py3-none-any.whl.
File metadata
- Download URL: wcpan.worker-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03636d0641a062050e3445e732beee68bc23f50bcea17e4838a445aeedca616d
|
|
| MD5 |
110e13b3ecb3bce00752fb1dad6b9081
|
|
| BLAKE2b-256 |
123ceecf833eea6dc3400d8a694094ed8c3964cd219adedbc5e25e3ae16a23a3
|