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.dev3.tar.gz (2.5 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.dev3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for wcpan.worker-1.0.0.dev3.tar.gz
Algorithm Hash digest
SHA256 14368016ded375ef518ebe02a2027fe0bf82998868a144b9960077bdcc02ad02
MD5 e7c1f11ee1815c253770dd25830318a7
BLAKE2b-256 c556da45d2f6ea605ec4869c42f27c66a21b6664fffcf9ffa1248cfd77f40609

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wcpan.worker-1.0.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 9cace3f555255c192a59c8dc1a84e2a55c6df42148c19f2bfcf1b63948ade21d
MD5 2d7dddd467ff8d773f60a6f7f2fff2b2
BLAKE2b-256 d1ee1b85b04bd90c19153cca6e285efaa1f51ebc22f807cd2f36b8fd29e6e17c

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