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

Method toLayerQueue

packages/effect/src/unstable/cluster/Entity.ts:171–171  ·  view source on GitHub ↗

* Create a Layer from an Entity. * * **Details** * * It will register the entity with the Sharding service.

(
    build:
      | ((
        queue: Queue.Dequeue<Envelope.Request<Rpcs>>,
        replier: Replier<Rpcs>
      ) => Effect.Effect<never, never, R>)
      | Effect.Effect<
        (
          queue: Queue.Dequeue<Envelope.Request<Rpcs>>,
          replier: Replier<Rpcs>
        ) => Effect.Effect<never, never, R>,
        never,
        RX
      >,
    options?: {
      readonly maxIdleTime?: Duration.Input | undefined
      readonly mailboxCapacity?: number | "unbounded" | undefined
      readonly disableFatalDefects?: boolean | undefined
      readonly defectRetryPolicy?: Schedule.Schedule<any, unknown> | undefined
      readonly spanAttributes?: Record<string, string> | undefined
    }
  )

Source from the content-addressed store, hash-verified

169 * It will register the entity with the Sharding service.
170 */
171 toLayerQueue<
172 R,
173 RX = never
174 >(

Callers 1

Entity.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected