MCPcopy 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 */
358export 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

syncMethod · 0.45

Tested by

no test coverage detected