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.1.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.1.tar.gz.
File metadata
- Download URL: wcpan.worker-1.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3e0014fff31fe1100fc9959e17ad0895d170979c91e04fbc011522cb53b150b
|
|
| MD5 |
40dde94c539a863aa9f7045dec12ad82
|
|
| BLAKE2b-256 |
8d4a21ff6d849c551c1841590a2d669c3b81e0721c8f7f56065e461540edfd6e
|
File details
Details for the file wcpan.worker-1.1.1-py3-none-any.whl.
File metadata
- Download URL: wcpan.worker-1.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eaa443a3f33681902c216bb071a218238e77fe068a356434fbab50a09ead655
|
|
| MD5 |
a536303d4e544d2b256f7b85bde1034c
|
|
| BLAKE2b-256 |
9c5b69c57377e3fc6ab722c9cb4239b9d4d1fca21bc1b14844d613f6a5362457
|