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.dev4.tar.gz (3.0 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.dev4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for wcpan.worker-1.0.0.dev4.tar.gz
Algorithm Hash digest
SHA256 9d931d64ff81831ad5217541c3d58afc1412118a350c93d0f3006311a7a53e44
MD5 b9e60df474faeab11e07f2b1ca207ab5
BLAKE2b-256 cd5c479826032b3b4ae99ff9c9a39f82aad35a22718c1ea75ba8659593978547

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wcpan.worker-1.0.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 35e39f9eb8f716016969a2db33de3937740159e2dc2b2947210a4cd0c00782e1
MD5 98f914c726370647f159f7dc4a58b329
BLAKE2b-256 a7fcbb42fceaf1361f6489e802319a777bc8c683045c63fce68c71b95412f98d

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