Searched refs:loop_factory (Results 1 – 11 of 11) sorted by relevance
/external/python/cpython3/Lib/asyncio/ |
D | runners.py | 48 def __init__(self, *, debug=None, loop_factory=None): argument 51 self._loop_factory = loop_factory 160 def run(main, *, debug=None, loop_factory=None): argument 193 with Runner(debug=debug, loop_factory=loop_factory) as runner:
|
/external/python/cpython3/Doc/library/ |
D | asyncio-runner.rst | 25 .. function:: run(coro, *, debug=None, loop_factory=None) 40 If *loop_factory* is not ``None``, it is used to create a new event loop; 44 *loop_factory* to configure the event loop instead of policies. 71 Added *loop_factory* parameter. 77 .. class:: Runner(*, debug=None, loop_factory=None) 89 *loop_factory* could be used for overriding the loop creation. 90 It is the responsibility of the *loop_factory* to set the created loop as the 92 current event loop with :func:`asyncio.set_event_loop` if *loop_factory* is ``None``.
|
D | unittest.rst | 1574 .. attribute:: loop_factory 1576 The *loop_factory* passed to :class:`asyncio.Runner`. Override
|
/external/python/cpython3/Lib/unittest/ |
D | async_case.py | 37 loop_factory = None variable in IsolatedAsyncioTestCase 125 runner = asyncio.Runner(debug=True, loop_factory=self.loop_factory)
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_runners.py | 24 def __init__(self, loop_factory): argument 25 self.loop_factory = loop_factory 33 return self.loop_factory() 273 asyncio.run(main(), loop_factory=factory) 284 asyncio.run(main(), loop_factory=asyncio.EventLoop) 299 with asyncio.Runner(loop_factory=lambda: loop) as runner:
|
D | test_subprocess.py | 972 with asyncio.Runner(loop_factory=asyncio.new_event_loop) as runner: 1010 with asyncio.Runner(loop_factory=asyncio.new_event_loop) as runner:
|
/external/python/cpython3/Lib/test/test_unittest/ |
D | test_async_case.py | 491 loop_factory = asyncio.EventLoop variable in TestAsyncCase.test_loop_factory.TestCase1
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.12.0a3.rst | 313 Add *loop_factory* parameter to :func:`asyncio.run` to allow specifying a
|
D | 3.13.0a2.rst | 904 Support setting the :class:`asyncio.Runner` loop_factory kwarg in
|
D | 3.13.0a1.rst | 1871 *loop_factory* kwarg to avoid calling the asyncio policy system.
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.12.rst | 666 * Add *loop_factory* parameter to :func:`asyncio.run` to allow specifying
|