diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-07 17:26:54 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-07 17:26:54 +0200 |
commit | 1a870c913238e6e2178283b1d69e9be9203473f2 (patch) | |
tree | a433b73f12bc92783ecf57c0ad77f4a17126c712 /Lib/asyncio/proactor_events.py | |
parent | Merge heads (diff) | |
download | cpython-1a870c913238e6e2178283b1d69e9be9203473f2.tar.gz cpython-1a870c913238e6e2178283b1d69e9be9203473f2.tar.bz2 cpython-1a870c913238e6e2178283b1d69e9be9203473f2.zip |
asyncio: sync with Tulip
- Tulip issue #181: Faster create_connection(). Call directly
waiter.set_result() in the constructor of _ProactorBasePipeTransport and
_SelectorSocketTransport, instead of using of delaying the call with
call_soon().
- Cleanup iscoroutine()
Diffstat (limited to 'Lib/asyncio/proactor_events.py')
-rw-r--r-- | Lib/asyncio/proactor_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py index a80876f366a..23545c9ee9d 100644 --- a/Lib/asyncio/proactor_events.py +++ b/Lib/asyncio/proactor_events.py @@ -38,7 +38,7 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin, self._server.attach(self) self._loop.call_soon(self._protocol.connection_made, self) if waiter is not None: - self._loop.call_soon(waiter._set_result_unless_cancelled, None) + waiter.set_result(None) def _set_extra(self, sock): self._extra['pipe'] = sock |