MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / identifyIsolate

Function identifyIsolate

apps/cloud/src/server.ts:214–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212let isolateFirstSeenAt = 0;
213
214const identifyIsolate = (): { readonly id: string; readonly ageMs: number } => {
215 if (isolateId === undefined) {
216 isolateId = crypto.randomUUID();
217 isolateFirstSeenAt = Date.now();
218 }
219 return { id: isolateId, ageMs: Date.now() - isolateFirstSeenAt };
220};
221
222const markStartGraphEntered = (): void => {
223 startGraphEntered = true;

Callers 1

server.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected