( service: Context.Key<I, S>, effect: Effect<S, E, R> )
| 987 | * The `Effect` is executed in the scope of the layer, allowing for proper |
| 988 | * resource management. |
| 989 | * |
| 990 | * **Example** (Creating a layer from an effect) |
| 991 | * |
| 992 | * ```ts import.meta.vitest |
| 993 | * import { Context, Effect, Layer } from "effect" |
| 994 | * |
| 995 | * class Database extends Context.Service<Database, { |
| 996 | * readonly query: (sql: string) => Effect.Effect<string> |
no test coverage detected
searching dependent graphs…