MCPcopy Index your code
hub / github.com/Effect-TS/effect / make

Function make

packages/effect/src/internal/queue.ts:393–408  ·  view source on GitHub ↗
(
  queue: Queue.BackingQueue<A>,
  strategy: Queue.Strategy<A>
)

Source from the content-addressed store, hash-verified

391
392/** @internal */
393export const make = <A>(
394 queue: Queue.BackingQueue<A>,
395 strategy: Queue.Strategy<A>
396): Effect.Effect<Queue.Queue<A>> =>
397 pipe(
398 core.deferredMake<void>(),
399 core.map((deferred) =>
400 unsafeMake(
401 queue,
402 MutableQueue.unbounded(),
403 deferred,
404 MutableRef.make(false),
405 strategy
406 )
407 )
408 )
409
410/** @internal */
411export class BackingQueueFromMutableQueue<in out A> implements Queue.BackingQueue<A> {

Callers 4

boundedFunction · 0.70
droppingFunction · 0.70
slidingFunction · 0.70
unboundedFunction · 0.70

Calls 4

pipeFunction · 0.70
unsafeMakeFunction · 0.70
mapMethod · 0.65
makeMethod · 0.65

Tested by

no test coverage detected