MCPcopy Index your code
hub / github.com/ipython/ipython / _trio_runner

Function _trio_runner

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

Source from the content-addressed store, hash-verified

104
105
106def _trio_runner(async_fn):
107 import trio
108
109 async def loc(coro):
110 """
111 We need the dummy no-op async def to protect from
112 trio's internal. See https://github.com/python-trio/trio/issues/89
113 """
114 return await coro
115
116 return trio.run(loc, async_fn)
117
118
119def _pseudo_sync_runner(coro):

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…