MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / run_callback

Method run_callback

examples/server/server.py:15496–15502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15494 done = threading.Event()
15495
15496 def run_callback() -> None:
15497 try:
15498 result_box["result"] = callback()
15499 except BaseException as exc: # noqa: BLE001
15500 error_box["error"] = exc
15501 finally:
15502 done.set()
15503
15504 self.enqueue(run_callback)
15505 done.wait()

Callers

nothing calls this directly

Calls 1

is_idleMethod · 0.80

Tested by

no test coverage detected