syrusakbary / promise

Ultra-performant Promise implementation in Python
MIT License
362 stars 76 forks source link

Fix await blocked by context exit #27

Closed syrusakbary closed 7 years ago

syrusakbary commented 7 years ago

There was a blocking issue caused by an await call inside a Promise Context. It was easily fixed by draining the context queue when iterating the future.

The newly added test test_await_in_context in tests/test_awaitable_35.py might showcase better this issue :)

@schrockn