Skip to main content

Tornado IOLoop Backed Concurrent Futures

Project description

build-status coverage pypi

Run Tornado Coroutines from Synchronous Python.

from threadloop import ThreadLoop
from tornado import gen

@gen.coroutine
def coroutine(greeting="Goodbye"):
    yield gen.sleep(1)
    raise gen.Return("%s World" % greeting)

with ThreadLoop() as threadloop:
    future = threadloop.submit(coroutine, "Hello")

    print future.result() # Hello World

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

threadloop-1.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

threadloop-1.0.2-py2-none-any.whl (6.2 kB view details)

Uploaded Python 2

File details

Details for the file threadloop-1.0.2.tar.gz.

File metadata

  • Download URL: threadloop-1.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for threadloop-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8b180aac31013de13c2ad5c834819771992d350267bddb854613ae77ef571944
MD5 1398e7c2d0f68bc370332d47693363af
BLAKE2b-256 d31d8398c1645b97dc008d3c658e04beda01ede3d90943d40c8d56863cf891bd

See more details on using hashes here.

File details

Details for the file threadloop-1.0.2-py2-none-any.whl.

File metadata

File hashes

Hashes for threadloop-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 5c90dbefab6ffbdba26afb4829d2a9df8275d13ac7dc58dccb0e279992679599
MD5 2ef9c5accaab19ee40b631c6de17b87d
BLAKE2b-256 dc1aecc8f9060b8b00f8a7edac9eb020357575d332a5ad9e32c3372c66a35f79

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page