]> 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)
commit93569c2b3d48b36df80635dbe3c02e3d5baa00d7
tree0b00d71b628b2fbd5e99caafb56e5a05b396614c
parent4137465bf546964736e45bed16a15d05000b26e8
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