MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / blocking

Function blocking

tests/lib/environments/test_worker.py:1202–1206  ·  view source on GitHub ↗
(_input: object)

Source from the content-addressed store, hash-verified

1200 return _beat_ok()
1201
1202 def blocking(_input: object) -> str:
1203 in_tool.set()
1204 if not release.wait(timeout=2):
1205 raise RuntimeError("no heartbeat fired while the tool ran")
1206 return "ok"
1207
1208 work, lease = _Work(), _Lease()
1209 result: object = None

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected