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

Method toLayer

packages/cluster/src/Entity.ts:125–125  ·  view source on GitHub ↗

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

(
    build: Handlers | Effect.Effect<Handlers, never, RX>,
    options?: {
      readonly maxIdleTime?: DurationInput | 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

123 * It will register the entity with the Sharding service.
124 */
125 toLayer<
126 Handlers extends HandlersFrom<Rpcs>,
127 RX = never
128 >(

Callers 6

TestEntity.tsFile · 0.65
toLayerMailboxFunction · 0.65
RunnerServer.tsFile · 0.65
makeFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected