Tornado IOLoop Backed Concurrent Futures
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b180aac31013de13c2ad5c834819771992d350267bddb854613ae77ef571944 |
|
MD5 | 1398e7c2d0f68bc370332d47693363af |
|
BLAKE2b-256 | d31d8398c1645b97dc008d3c658e04beda01ede3d90943d40c8d56863cf891bd |
File details
Details for the file threadloop-1.0.2-py2-none-any.whl
.
File metadata
- Download URL: threadloop-1.0.2-py2-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c90dbefab6ffbdba26afb4829d2a9df8275d13ac7dc58dccb0e279992679599 |
|
MD5 | 2ef9c5accaab19ee40b631c6de17b87d |
|
BLAKE2b-256 | dc1aecc8f9060b8b00f8a7edac9eb020357575d332a5ad9e32c3372c66a35f79 |