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.1.tar.gz
(3.2 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.1.tar.gz.
File metadata
- Download URL: wcpan.worker-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27b5961bcad342f659f359fb1a6c13c0096c5df43bd88c18a413b9170a7e7f79
|
|
| MD5 |
d36d6a0a8a7e17f9ca58945ad15eac23
|
|
| BLAKE2b-256 |
018cfc5bad184e62c26080b08d6c771286edec6dea6c64241bbd3a6ef1de6b20
|
File details
Details for the file wcpan.worker-1.0.1-py3-none-any.whl.
File metadata
- Download URL: wcpan.worker-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e0bc094ff8f5ff67dcae9877143d5e6ce26e92d4997c43aec4129ae979d8ba1
|
|
| MD5 |
78e13d83cafb36f3c2dfa204107464eb
|
|
| BLAKE2b-256 |
1f2df5ec801d368fc5449e2f358ad35c833038b832762601fb6aec8383eb0427
|