Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
{ describe, expect, it, vi } from
"vitest"
;
2
import
{ Semaphore, withTimeoutNotify } from
"./concurrency-control"
;
3
4
describe(
"Semaphore"
, () => {
Callers
nothing calls this directly
Calls
6
withTimeoutNotify
Function · 0.90
acquire
Method · 0.80
release
Method · 0.80
push
Method · 0.80
task
Function · 0.70
run
Function · 0.70
Tested by
no test coverage detected