• Home
  • Raw
  • Download

Lines Matching full:runner

265         with asyncio.Runner(debug=False) as runner:
266 self.assertFalse(runner.get_loop().get_debug())
269 with asyncio.Runner(debug=True) as runner:
270 self.assertTrue(runner.get_loop().get_debug())
274 with asyncio.Runner(loop_factory=lambda: loop) as runner:
275 self.assertIs(runner.get_loop(), loop)
282 with asyncio.Runner() as runner:
283 self.assertEqual('done', runner.run(f()))
284 loop = runner.get_loop()
288 "Runner is closed"
290 runner.get_loop()
295 with asyncio.Runner() as runner:
300 runner.run(123)
303 with asyncio.Runner() as runner:
308 fut = runner.get_loop().create_future()
309 runner.run(fut)
312 runner = asyncio.Runner()
313 loop = runner.get_loop()
314 runner.close()
317 "Runner is closed"
319 runner.get_loop()
324 runner = asyncio.Runner()
325 loop = runner.get_loop()
327 runner.close()
331 runner.close()
340 runner = asyncio.Runner()
341 with runner:
342 runner.run(f(1))
346 "Runner is closed"
348 with runner:
349 runner.run(f(2))
365 with asyncio.Runner() as runner:
366 self.assertEqual(-1, runner.run(f(1)))
367 self.assertEqual(1, runner.run(f(2)))
369 self.assertEqual(2, runner.run(get_context()).get(cvar))
376 runner.run(g())
378 with asyncio.Runner() as runner:
386 "Runner.run() cannot be called from a running event loop"
389 runner.run(f())
402 with asyncio.Runner() as runner:
403 runner.get_loop().call_later(0.1, interrupt_self)
405 runner.run(coro())
416 with asyncio.Runner() as runner:
417 fut = runner.get_loop().create_future()
418 runner.get_loop().call_later(0.1, interrupt_self)
421 runner.run(coro(fut))
438 with asyncio.Runner() as runner:
440 runner.run(coro())
449 with asyncio.Runner() as runner:
457 runner.run(coro())
466 runner = asyncio.Runner()
467 runner.run(coro())
468 runner.run(coro())
471 runner.close()