Issue #27041: asyncio: Add loop.create_future method

This commit is contained in:
Yury Selivanov 2016-05-16 15:38:39 -04:00
parent 7ed7ce6ee7
commit 7661db6228
14 changed files with 55 additions and 39 deletions

View file

@ -177,7 +177,7 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
stdin, stdout, stderr, bufsize,
extra=None, **kwargs):
with events.get_child_watcher() as watcher:
waiter = futures.Future(loop=self)
waiter = self.create_future()
transp = _UnixSubprocessTransport(self, protocol, args, shell,
stdin, stdout, stderr, bufsize,
waiter=waiter, extra=extra,