pulumi/sdk/python/lib/test/langhost/invoke_future
Pat Gavlin 91af1a93c4
Fix a reentrancy issue in _sync_await. (#3056)
_sync_await was not reentrant with respect to _run_once: the latter
captures the length of the ready list before it iterates it, and the
former drains the ready list by reentering _run_once. Fix this by
tracking the length of the list before pumping the event loop and then
pushing cancelled handles on to the list as necessary after pumping the
loop.

These changes also fix an issue with `export`ing awaitables.

Fixes #3038.
2019-08-08 19:51:11 -07:00
..
__init__.py Fix a reentrancy issue in _sync_await. (#3056) 2019-08-08 19:51:11 -07:00
__main__.py Fix a reentrancy issue in _sync_await. (#3056) 2019-08-08 19:51:11 -07:00
test_invoke_future.py Fix a reentrancy issue in _sync_await. (#3056) 2019-08-08 19:51:11 -07:00