MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / guarded

Method guarded

src/workflow/runtime.py:238–245  ·  view source on GitHub ↗
(index: int, item)

Source from the content-addressed store, hash-verified

236 base = current_branch().path + (current_branch().next_slot(),)
237
238 async def guarded(index: int, item):
239 token = use_branch(base + (index,))
240 try:
241 return await await_item(item)
242 except Exception:
243 return None # the barrier never rejects
244 finally:
245 reset_branch(token)
246
247 return list(await asyncio.gather(*(guarded(i, it) for i, it in enumerate(items))))
248

Callers 9

credits.tsFile · 0.80
session.tsFile · 0.80
switchModelFunction · 0.80
core.tsFile · 0.80
armStepUpFunction · 0.80
tickFunction · 0.80
buildOverlayCtxFunction · 0.80
billing.tsFile · 0.80
ops.tsFile · 0.80

Calls 3

use_branchFunction · 0.85
await_itemFunction · 0.85
reset_branchFunction · 0.85

Tested by

no test coverage detected