MCPcopy
hub / github.com/aio-libs/aiohttp / run_briefly

Function run_briefly

aiohttp/test_utils.py:25–30  ·  view source on GitHub ↗
(loop)

Source from the content-addressed store, hash-verified

23
24
25def run_briefly(loop):
26 @asyncio.coroutine
27 def once():
28 pass
29 t = asyncio.Task(once(), loop=loop)
30 loop.run_until_complete(t)
31
32
33@contextlib.contextmanager

Callers 1

runFunction · 0.85

Calls 1

onceFunction · 0.85

Tested by

no test coverage detected