MCPcopy Create free account
hub / github.com/ipython/ipython / _trio_runner

Function _trio_runner

IPython/core/async_helpers.py:45–55  ·  view source on GitHub ↗
(async_fn)

Source from the content-addressed store, hash-verified

43
44
45def _trio_runner(async_fn):
46 import trio
47
48 async def loc(coro):
49 """
50 We need the dummy no-op async def to protect from
51 trio's internal. See https://github.com/python-trio/trio/issues/89
52 """
53 return await coro
54
55 return trio.run(loc, async_fn)
56
57
58def _pseudo_sync_runner(coro):

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected