Home
last modified time | relevance | path

Searched refs:loop_factory (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Lib/asyncio/
Drunners.py48 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/
Dasyncio-runner.rst25 .. 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``.
Dunittest.rst1574 .. attribute:: loop_factory
1576 The *loop_factory* passed to :class:`asyncio.Runner`. Override
/external/python/cpython3/Lib/unittest/
Dasync_case.py37 loop_factory = None variable in IsolatedAsyncioTestCase
125 runner = asyncio.Runner(debug=True, loop_factory=self.loop_factory)
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_runners.py24 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:
Dtest_subprocess.py972 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/
Dtest_async_case.py491 loop_factory = asyncio.EventLoop variable in TestAsyncCase.test_loop_factory.TestCase1
/external/python/cpython3/Misc/NEWS.d/
D3.12.0a3.rst313 Add *loop_factory* parameter to :func:`asyncio.run` to allow specifying a
D3.13.0a2.rst904 Support setting the :class:`asyncio.Runner` loop_factory kwarg in
D3.13.0a1.rst1871 *loop_factory* kwarg to avoid calling the asyncio policy system.
/external/python/cpython3/Doc/whatsnew/
D3.12.rst666 * Add *loop_factory* parameter to :func:`asyncio.run` to allow specifying