MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / new_event_loop

Method new_event_loop

test/conftest.py:35–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33
34class EagerTaskCreationEventLoopPolicy(asyncio.DefaultEventLoopPolicy):
35 def new_event_loop(self):
36 loop = super().new_event_loop()
37 loop.set_task_factory(asyncio.eager_task_factory)
38 return loop
39
40
41@pytest.fixture(scope="session")

Callers 3

run_asyncFunction · 0.80
runFunction · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected