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.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-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wcpan.worker-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wcpan.worker-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ceb5f21b084f3bb750e04fe8a41c9b5f946a14247148b4b1d169dbbc34e8557f
MD5 25b6aa5804d65bc6240086b141543623
BLAKE2b-256 e24b4b7380f7bf16b3891685b7f74adf15be73a81cddd98cf4663a2af67753c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wcpan.worker-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f285327d1ab412a5f243f944d26c265aae56df02a02884a7643d9667bbd58562
MD5 e60a5c412cb7b1c8d686aed07e802071
BLAKE2b-256 972d9fd146bf3cdd68ffcaf2edc1738b96e5997ccfb32d354cd35926acbf0285

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