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.2.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.2.0.tar.gz.
File metadata
- Download URL: wcpan.worker-1.2.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85d8f1f4ae3a46009d8dc46e8b297b5c31783ca6d25a84506465ca0a2d611875
|
|
| MD5 |
dec61c771e39ad6ad7c99cc246e7c415
|
|
| BLAKE2b-256 |
c88de7cafc827dfa90eb6cd272da839e6a07ea8a0227b4c02ce7ea2b3b77c0b0
|
File details
Details for the file wcpan.worker-1.2.0-py3-none-any.whl.
File metadata
- Download URL: wcpan.worker-1.2.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 |
480f383522c51a4292db06e1de97097cb31d01c004623880fe16abe593ed8b14
|
|
| MD5 |
27aef4e3705ae4eb628dd06859b3a019
|
|
| BLAKE2b-256 |
acd339284e32ea2c1e3c805d152d76631dafe2de9016c5e53fb7253b151882bf
|