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

Method toLayer

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

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

(
    build: Handlers | Effect.Effect<Handlers, never, RX>,
    options?: {
      readonly maxIdleTime?: Duration.Input | undefined
      readonly concurrency?: number | "unbounded" | 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

136 * It will register the entity with the Sharding service.
137 */
138 toLayer<
139 Handlers extends HandlersFrom<Rpcs>,
140 RX = never
141 >(

Callers 4

toLayerQueueFunction · 0.65
RunnerServer.tsFile · 0.65
makeFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected