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

Function make

packages/effect/src/Pool.ts:220–226  ·  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

218 * @since 2.0.0
219 */
220export const make = <A, E, R>(options: {
221 readonly acquire: Effect.Effect<A, E, R>
222 readonly size: number
223 readonly concurrency?: number | undefined
224 readonly targetUtilization?: number | undefined
225}): Effect.Effect<Pool<A, E>, never, R | Scope.Scope> =>
226 makeWithStrategy({ ...options, min: options.size, max: options.size, strategy: strategyNoop() })
227
228/**
229 * Creates a scoped pool with minimum and maximum sizes and a time-to-live

Callers

nothing calls this directly

Calls 2

makeWithStrategyFunction · 0.85
strategyNoopFunction · 0.85

Tested by

no test coverage detected