MCPcopy Create free account
hub / github.com/apache/maka / capture

Method capture

packages/runtime/src/runtime-kernel.ts:3813–3819  ·  view source on GitHub ↗
(operation: () => Promise<unknown> | unknown)

Source from the content-addressed store, hash-verified

3811 }
3812
3813 async capture(operation: () => Promise<unknown> | unknown): Promise<void> {
3814 try {
3815 await operation();
3816 } catch (error) {
3817 this.add(error);
3818 }
3819 }
3820
3821 throwIfAny(message: string): void {
3822 if (this.failures.length === 1) throw this.failures[0];

Callers 4

compactSessionClaimedMethod · 0.95
cleanupRunExecutionMethod · 0.95
finalizeOwnedRunMethod · 0.95

Calls 1

addMethod · 0.95

Tested by

no test coverage detected