Lines Matching full:task
87 await on disconnect(), which awaits the disconnect task and
115 Run a given coroutine as a task.
261 This launches a task alongside (most) tests below to confirm that
275 # Kick the loop and force the task to block on the event.
340 # Note that accept() cannot be cancelled outright, as it isn't a task.
341 # However, we can wrap it in a task and cancel *that*.
343 task = run_as_task(self._hanging_connection(), allow_cancellation=True)
353 task.cancel()
354 await task
362 task = run_as_task(self._hanging_connection())
367 # result of the task with a nearly-zero timeout.
374 await asyncio.wait_for(task, timeout=0)
382 task = run_as_task(self._hanging_connection(), allow_cancellation=True)
397 task.cancel()
398 await task
408 task = run_as_task(self._hanging_connection(), allow_cancellation=True)
417 task.cancel()
418 await task