ThreadLoop
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
Metadata
Release files for threadloop 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| threadloop-1.0.2.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| threadloop-1.0.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 11.1 kB
Release files / threadloop-1.0.2.tar.gz
| Download URL | threadloop-1.0.2.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b180aac31013de13c2ad5c834819771992d350267bddb854613ae77ef571944
|
|
BLAKE2b-256 checksum How to use checksums |
d31d8398c1645b97dc008d3c658e04beda01ede3d90943d40c8d56863cf891bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / threadloop-1.0.2-py2-none-any.whl
| Download URL | threadloop-1.0.2-py2-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
5c90dbefab6ffbdba26afb4829d2a9df8275d13ac7dc58dccb0e279992679599
|
|
BLAKE2b-256 checksum How to use checksums |
dc1aecc8f9060b8b00f8a7edac9eb020357575d332a5ad9e32c3372c66a35f79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |