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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wcpan.worker-1.2.0.tar.gz
Algorithm Hash digest
SHA256 85d8f1f4ae3a46009d8dc46e8b297b5c31783ca6d25a84506465ca0a2d611875
MD5 dec61c771e39ad6ad7c99cc246e7c415
BLAKE2b-256 c88de7cafc827dfa90eb6cd272da839e6a07ea8a0227b4c02ce7ea2b3b77c0b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wcpan.worker-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 480f383522c51a4292db06e1de97097cb31d01c004623880fe16abe593ed8b14
MD5 27aef4e3705ae4eb628dd06859b3a019
BLAKE2b-256 acd339284e32ea2c1e3c805d152d76631dafe2de9016c5e53fb7253b151882bf

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