MCPcopy Create free account
hub / github.com/EasyIME/PIME / f

Method f

python/python3/tornado/test/asyncio_test.py:60–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 def test_asyncio_yield_from(self):
59 @gen.coroutine
60 def f():
61 event_loop = asyncio.get_event_loop()
62 x = yield from event_loop.run_in_executor(None, lambda: 42)
63 return x
64
65 result = yield f()
66 self.assertEqual(result, 42)

Callers

nothing calls this directly

Calls 2

get_event_loopMethod · 0.80
run_in_executorMethod · 0.45

Tested by

no test coverage detected