Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ Latch.ts
File
Latch.ts
packages/effect/src/Latch.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* Reusable synchronization primitives
for
coordinating fibers. A `Latch` is
3
* either open or closed: when it is closed, `
await
` and `whenOpen` suspend
4
* until the latch opens or the current waiters are released. The module
Callers
nothing calls this directly
Calls
1
whenOpen
Method · 0.80
Tested by
no test coverage detected