MCPcopy Create free account
hub / github.com/Effect-TS/effect / Semaphore.test.ts

File Semaphore.test.ts

packages/effect/test/Semaphore.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { assert, describe, it } from "@effect/vitest"
2import { Duration, Effect, Fiber, Option, PartitionedSemaphore, Semaphore } from "effect"
3import * as Scheduler from "effect/Scheduler"
4import { TestClock } from "effect/testing"

Callers

nothing calls this directly

Calls 15

queuedSchedulerFunction · 0.85
allMethod · 0.80
pushMethod · 0.80
adjustMethod · 0.80
pollUnsafeMethod · 0.80
joinMethod · 0.80
interruptUnsafeMethod · 0.80
withPermitMethod · 0.80
someMethod · 0.80
releaseAllMethod · 0.80
makeMethod · 0.65
withPermitsMethod · 0.65

Tested by

no test coverage detected