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.1.0.tar.gz (3.8 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.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wcpan.worker-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f22c05423a7f65c5aae5af9ed7e2f17f0c60dd2c4719978599d00b1d33d7f301
MD5 4b148c2bc2ee51ea45bf78a1bea06948
BLAKE2b-256 78cd99a8b123ad9cbdb7023db5a01b257848f9aaef9cfbba77e848569dbbf7f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wcpan.worker-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03636d0641a062050e3445e732beee68bc23f50bcea17e4838a445aeedca616d
MD5 110e13b3ecb3bce00752fb1dad6b9081
BLAKE2b-256 123ceecf833eea6dc3400d8a694094ed8c3964cd219adedbc5e25e3ae16a23a3

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