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.1.tar.gz (3.2 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.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wcpan.worker-1.0.1.tar.gz
Algorithm Hash digest
SHA256 27b5961bcad342f659f359fb1a6c13c0096c5df43bd88c18a413b9170a7e7f79
MD5 d36d6a0a8a7e17f9ca58945ad15eac23
BLAKE2b-256 018cfc5bad184e62c26080b08d6c771286edec6dea6c64241bbd3a6ef1de6b20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wcpan.worker-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e0bc094ff8f5ff67dcae9877143d5e6ce26e92d4997c43aec4129ae979d8ba1
MD5 78e13d83cafb36f3c2dfa204107464eb
BLAKE2b-256 1f2df5ec801d368fc5449e2f358ad35c833038b832762601fb6aec8383eb0427

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