Lines Matching defs:asyncio

9 import asyncio
10 from asyncio import base_subprocess
11 from asyncio import subprocess
17 from asyncio import unix_events
34 asyncio.set_event_loop_policy(None)
115 proc = await asyncio.create_subprocess_exec(
132 task = asyncio.wait_for(task, 60.0)
141 proc = await asyncio.create_subprocess_exec(
150 task = asyncio.wait_for(task, support.LONG_TIMEOUT)
157 asyncio.create_subprocess_shell('exit 7')
165 asyncio.create_subprocess_shell(
176 asyncio.create_subprocess_exec(*args)
198 asyncio.create_subprocess_shell(blocking_shell_command, stdout=asyncio.subprocess.PIPE,
201 self.loop.run_until_complete(asyncio.sleep(1))
216 asyncio.create_subprocess_exec(*args)
236 asyncio.create_subprocess_exec(
262 asyncio.create_subprocess_exec(
274 await asyncio.sleep(0.5)
314 proc = await asyncio.create_subprocess_exec(
316 stdin=asyncio.subprocess.PIPE,
317 stdout=asyncio.subprocess.PIPE,
338 # asyncio issue #209: stdin must not be inheritable, otherwise
342 proc = await asyncio.create_subprocess_exec(
344 stdin=asyncio.subprocess.PIPE,
345 stdout=asyncio.subprocess.PIPE,
346 stderr=asyncio.subprocess.PIPE,
361 proc = await asyncio.create_subprocess_exec(
363 stdin=asyncio.subprocess.PIPE,
364 stdout=asyncio.subprocess.PIPE,
365 stderr=asyncio.subprocess.PIPE,
380 proc = await asyncio.create_subprocess_exec(
382 stdin=asyncio.subprocess.DEVNULL,
383 stdout=asyncio.subprocess.PIPE,
384 stderr=asyncio.subprocess.PIPE,
399 proc = await asyncio.create_subprocess_exec(
401 stdin=asyncio.subprocess.PIPE,
402 stdout=asyncio.subprocess.DEVNULL,
403 stderr=asyncio.subprocess.PIPE,
418 proc = await asyncio.create_subprocess_exec(
420 stdin=asyncio.subprocess.PIPE,
421 stdout=asyncio.subprocess.PIPE,
422 stderr=asyncio.subprocess.DEVNULL,
438 proc = await asyncio.create_subprocess_exec(
440 stdin=asyncio.subprocess.PIPE,
441 stdout=asyncio.subprocess.PIPE,
442 stderr=asyncio.subprocess.PIPE,
457 proc = await asyncio.create_subprocess_exec(*PROGRAM_BLOCKED)
464 except asyncio.CancelledError:
479 coro = asyncio.create_subprocess_exec(*PROGRAM_BLOCKED)
485 except asyncio.CancelledError:
496 coro = self.loop.subprocess_exec(asyncio.SubprocessProtocol,
503 except asyncio.CancelledError:
515 create = self.loop.subprocess_exec(asyncio.SubprocessProtocol,
530 await asyncio.wait_for(transport._wait(), 5)
539 except asyncio.TimeoutError:
552 create = self.loop.subprocess_exec(asyncio.SubprocessProtocol,
557 # kill the process (but asyncio is not notified immediately)
588 asyncio.get_child_watcher()._callbacks.clear()
592 target = 'asyncio.windows_utils.Popen'
601 await asyncio.create_subprocess_exec(
629 process = await asyncio.create_subprocess_exec(
631 stdout=asyncio.subprocess.PIPE,
637 await asyncio.sleep(0.3)
690 proc = await asyncio.create_subprocess_exec(
691 cmd, *args, stdout=asyncio.subprocess.PIPE,
698 res = await asyncio.gather(*[get_command_stdout(sys.executable, '-c',
713 policy = asyncio.get_event_loop_policy()
723 policy = asyncio.get_event_loop_policy()
773 asyncio.AbstractChildWatcher,
778 asyncio.set_child_watcher(watcher)
786 with asyncio.Runner(loop_factory=asyncio.new_event_loop) as runner:
800 self.loop = asyncio.ProactorEventLoop()