MCPcopy Create free account
hub / github.com/Effect-TS/effect / make

Function make

packages/effect/src/Pool.ts:284–290  ·  view source on GitHub ↗
(options: {
  readonly acquire: Effect.Effect<A, E, R>
  readonly size: number
  readonly concurrency?: number | undefined
  readonly targetUtilization?: number | undefined
})

Source from the content-addressed store, hash-verified

282 * @since 2.0.0
283 */
284export const make = <A, E, R>(options: {
285 readonly acquire: Effect.Effect<A, E, R>
286 readonly size: number
287 readonly concurrency?: number | undefined
288 readonly targetUtilization?: number | undefined
289}): Effect.Effect<Pool<A, E>, never, R | Scope.Scope> =>
290 makeWithStrategy({ ...options, min: options.size, max: options.size, strategy: strategyNoop })
291
292/**
293 * Creates a scoped pool with minimum and maximum sizes and a time-to-live

Callers

nothing calls this directly

Calls 1

makeWithStrategyFunction · 0.85

Tested by

no test coverage detected