(async_fn)
| 104 | |
| 105 | |
| 106 | def _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 | |
| 119 | def _pseudo_sync_runner(coro): |
nothing calls this directly
no test coverage detected
searching dependent graphs…