<A = void, E = never, R = never>(
tag: HyperlinkTag<any, any, any>,
patch: ConfigPatch<ProcessLayerConfig<A, E, R>>
): Layer.Layer<never>A config-patch layer for the process tag — merge it with the process's layer and its
patch (polling / a (previous) => next wrap of effect) folds onto the base config at build.
export const const configure: <
A = void,
E = never,
R = never
>(
tag: HyperlinkTag<any, any, any>,
patch: ConfigPatch<ProcessLayerConfig<A, E, R>>
) => Layer.Layer<never>
A config-patch layer for the process tag — merge it with the process's
layer
and its
patch (polling / a (previous) => next wrap of effect) folds onto the base config at build.
configure = <function (type parameter) A in <A = void, E = never, R = never>(tag: HyperlinkTag<any, any, any>, patch: ConfigPatch<ProcessLayerConfig<A, E, R>>): Layer.Layer<never>A = void, function (type parameter) E in <A = void, E = never, R = never>(tag: HyperlinkTag<any, any, any>, patch: ConfigPatch<ProcessLayerConfig<A, E, R>>): Layer.Layer<never>E = never, function (type parameter) R in <A = void, E = never, R = never>(tag: HyperlinkTag<any, any, any>, patch: ConfigPatch<ProcessLayerConfig<A, E, R>>): Layer.Layer<never>R = never>(
tag: HyperlinkTag<any, any, any>tag: import HyperlinkTagHyperlinkTag<any, any, any>,
patch: ConfigPatch<ProcessLayerConfig<A, E, R>>patch: import ConfigPatchConfigPatch<interface ProcessLayerConfig<A, E, R>Config for
layer
/
serve
/
serveRemote
. The effect is the work each run
performs; its success is captured into result when the tag is value-returning. Scheduling comes
from the tag now (Process.schedule(...)), not the config.
ProcessLayerConfig<function (type parameter) A in <A = void, E = never, R = never>(tag: HyperlinkTag<any, any, any>, patch: ConfigPatch<ProcessLayerConfig<A, E, R>>): Layer.Layer<never>A, function (type parameter) E in <A = void, E = never, R = never>(tag: HyperlinkTag<any, any, any>, patch: ConfigPatch<ProcessLayerConfig<A, E, R>>): Layer.Layer<never>E, function (type parameter) R in <A = void, E = never, R = never>(tag: HyperlinkTag<any, any, any>, patch: ConfigPatch<ProcessLayerConfig<A, E, R>>): Layer.Layer<never>R>>,
): import LayerLayer.interface Layer<in ROut, out E = never, out RIn = never>A Layer describes how to build one or more services for dependency injection.
When to use
Use to model construction of application services for dependency injection,
especially when services have dependencies, can fail during construction, or
need scoped setup and release.
Details
A Layer<ROut, E, RIn> represents ROut as the services this layer
provides, E as the possible errors during layer construction, and RIn as
the services this layer requires as dependencies.
Layer<never> => import configureLayerconfigureLayer(tag: HyperlinkTag<any, any, any>tag.key, patch: ConfigPatch<ProcessLayerConfig<A, E, R>>patch);