]> granicus.if.org Git - python/commit
asyncio: Ensure call_soon(), call_later() and call_at() are invoked on current
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 21 Mar 2014 09:00:52 +0000 (10:00 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 21 Mar 2014 09:00:52 +0000 (10:00 +0100)
commit87bbefe1137d8bbe42503f6dc0633ff25be6868b
tree7150881019f55b9a7d082eece14b6ce19d5c154c
parentee6bdc07d65d5df418ad9dc2bb7139666af9a6b2
asyncio: Ensure call_soon(), call_later() and call_at() are invoked on current
loop in debug mode. Raise a RuntimeError if the event loop of the current
thread is different.  The check should help to debug thread-safetly issue.
Patch written by David Foster.
Lib/asyncio/base_events.py
Lib/test/test_asyncio/test_base_events.py