MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / tickDeadline

Function tickDeadline

src/compute-engine/rubi/match.ts:35–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33// matchAll call runs to completion (or throws) before the next, and the
34// previous value is restored in a finally.
35let _matchDeadline: number | undefined = undefined;
36let _matchTick = 0;
37function tickDeadline(): void {
38 // amortize Date.now() over 1024 steps (same stride as the engine loops)
39 if ((++_matchTick & 0x3ff) === 0) checkDeadline(_matchDeadline);
40}
41

Callers 1

mFunction · 0.85

Calls 1

checkDeadlineFunction · 0.90

Tested by

no test coverage detected