DaemonScheduleLayerInputmodelsDaemon.make
Source src/Daemon.ts:3761 lines
export type type DaemonScheduleLayerInput =
Layer.Layer<DaemonScheduleTag, never, never>
DaemonScheduleLayerInput = 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<class DaemonScheduleTagclass DaemonScheduleTag {
key: Identifier;
Service: {
entries: Effect.Effect<ReadonlyArray<DaemonScheduleEntry>>;
changed: Effect.Effect<void>;
get: (id: string) => Effect.Effect<Option.Option<DaemonScheduleEntry>>;
has: (id: string) => Effect.Effect<boolean>;
set: (entries: ReadonlyArray<DaemonScheduleEntry>) => Effect.Effect<void>;
add: (entry: DaemonScheduleEntry) => Effect.Effect<void>;
upsert: (entry: DaemonScheduleEntry) => Effect.Effect<void>;
remove: (id: string) => Effect.Effect<boolean>;
removeMany: (ids: ReadonlyArray<string>) => Effect.Effect<number>;
clear: Effect.Effect<void>;
reconcile: (next: ReadonlyArray<DaemonScheduleEntry>) => Effect.Effect<ReconcileResult>;
};
}
Context tag for the DaemonSchedule service.
DaemonScheduleTag, never, never>;
Referenced by 3 symbols