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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for wcpan.worker-1.2.0.dev2.tar.gz
Algorithm Hash digest
SHA256 ffc24fdcf83ee3ad05bf50c4247fb47b9d22b71fba3ed34aa3b3862720f294e8
MD5 82b9c7a2a36a3009553a04d1ce89c654
BLAKE2b-256 baf4df2748caa0c202b229c05bcd347184204c57a775f819b7bc13bd2a0271d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wcpan.worker-1.2.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0e5588699fa4e773bf083dede1bc6be59f9e894f4dc0aa496f494552f2bb0e7
MD5 bd542e37c828264f1daf847082f1c89d
BLAKE2b-256 212f2ea1f4f0eb7114982b7e5209e99ff59058dcc3db7101aa854003141c1b1e

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