(
name: string,
run: Effect.Effect<void, E, R>,
options?: {
readonly shardGroup?: string | undefined
}
)
| 44 | * @since 4.0.0 |
| 45 | */ |
| 46 | export const make = <E, R>( |
| 47 | name: string, |
| 48 | run: Effect.Effect<void, E, R>, |
| 49 | options?: { |
| 50 | readonly shardGroup?: string | undefined |
| 51 | } |
| 52 | ): Layer.Layer<never, never, Sharding | Exclude<R, Scope>> => |
| 53 | Layer.effectDiscard(Effect.gen(function*() { |
| 54 | const sharding = yield* Sharding |
| 55 | yield* sharding.registerSingleton(name, run, options) |
| 56 | })) |
nothing calls this directly
no outgoing calls
no test coverage detected