Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ make
Function
make
packages/effect/src/Semaphore.ts:358–358 ·
view source on GitHub ↗
(permits: number)
Source
from the content-addressed store, hash-verified
356
* @since 4.0.0
357
*/
358
export
const
make = (permits: number): Effect.Effect<Semaphore> => internal.sync(() =>
new
SemaphoreImpl(permits))
359
360
/**
361
* Sets the total number of permits managed by the semaphore.
Callers
nothing calls this directly
Calls
1
sync
Method · 0.45
Tested by
no test coverage detected