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

Method run_sync

src/trio/_threads.py:238–240  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

236 return ret
237
238 def run_sync(self) -> None:
239 result = outcome.capture(self.unprotected_fn)
240 self.queue.put_nowait(result)
241
242 def run_in_host_task(self, token: TrioToken) -> None:
243 task_register = PARENT_TASK_DATA.task_register

Callers 15

to_thread_run_syncFunction · 0.80
_open_processFunction · 0.80
wrapperMethod · 0.80
detachMethod · 0.80
acloseMethod · 0.80
open_fileFunction · 0.80
WaitForSingleObjectFunction · 0.80
getaddrinfoFunction · 0.80
getnameinfoFunction · 0.80
getprotobynameFunction · 0.80
bindMethod · 0.80
runcodeMethod · 0.80

Calls 1

put_nowaitMethod · 0.80

Tested by 2

test_is_main_threadFunction · 0.64