Skip to main content

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


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.0.dev5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wcpan.worker-1.0.0.dev5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file wcpan.worker-1.0.0.dev5.tar.gz.

File metadata

File hashes

Hashes for wcpan.worker-1.0.0.dev5.tar.gz
Algorithm Hash digest
SHA256 53300f8c7c604f594a5b855e960c543d9eb51c05260c80cda2f75d8df29ea6e1
MD5 af9bf6e2f4f38c66657f172127213fce
BLAKE2b-256 b0d9a963bcbd4af33cf6c1904c409333f3c790053877c7ab6d43a9a5dd1d8d33

See more details on using hashes here.

File details

Details for the file wcpan.worker-1.0.0.dev5-py3-none-any.whl.

File metadata

File hashes

Hashes for wcpan.worker-1.0.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 7475864ff650f2c22d8fb0bbda35ffe410b97f2795b7432b88c62ed4a5f577fe
MD5 c4733b7867d44e59f51c6765ad699d04
BLAKE2b-256 7b9d1e1e91c5bbd01acc2f486e02f5c784bc4a2bd7550cca8b9d1ba2b30441e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page