MCPcopy
hub / github.com/python-trio/trio / in_trio_thread

Method in_trio_thread

src/trio/_threads.py:188–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186 task_register = PARENT_TASK_DATA.task_register
187
188 def in_trio_thread() -> None:
189 task = task_register[0]
190 assert task is not None, "guaranteed by abandon_on_cancel semantics"
191 trio.lowlevel.reschedule(task, outcome.Value(self))
192
193 token.run_sync_soon(in_trio_thread)
194

Callers

nothing calls this directly

Calls 3

rescheduleMethod · 0.80
spawn_system_taskMethod · 0.80
put_nowaitMethod · 0.80

Tested by

no test coverage detected