MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / concurrency-control.test.ts

File concurrency-control.test.ts

src/pkg/utils/concurrency-control.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, expect, it, vi } from "vitest";
2import { Semaphore, withTimeoutNotify } from "./concurrency-control";
3
4describe("Semaphore", () => {

Callers

nothing calls this directly

Calls 6

withTimeoutNotifyFunction · 0.90
acquireMethod · 0.80
releaseMethod · 0.80
pushMethod · 0.80
taskFunction · 0.70
runFunction · 0.70

Tested by

no test coverage detected