(entries?: ReadonlyArray<ScheduleEntry>): DaemonScheduleLayerInputAn in-memory schedule layer seeded with entries — the Layer you hand to make's
scheduleLayer. Call with no argument for an empty schedule (disarmed until an entry is added
via set / add / reconcile or a schedule initializer). Mutable at runtime through the schedule
controls (Daemon.scheduleControls, the inline schedule verbs, or a Schedule resource).
export const const scheduleInMemory: (
entries?: ReadonlyArray<ScheduleEntry>
) => DaemonScheduleLayerInput
An in-memory schedule layer seeded with entries — the Layer you hand to
make
's
scheduleLayer. Call with no argument for an empty schedule (disarmed until an entry is added
via set / add / reconcile or a schedule initializer). Mutable at runtime through the schedule
controls (Daemon.scheduleControls, the inline schedule verbs, or a
Schedule
resource).
scheduleInMemory = (
entries: ReadonlyArray<ScheduleEntry>entries?: interface ReadonlyArray<T>ReadonlyArray<type ScheduleEntry = DaemonScheduleEntryA native engine schedule entry — { id?, startAt, stopAt? }, the same shape as a
ScheduleWindow
(
at
/
window
build these). Element of a
ScheduleService
's entries.
ScheduleEntry>,
): type DaemonScheduleLayerInput =
Layer.Layer<DaemonScheduleTag, never, never>
DaemonScheduleLayerInput => const DaemonSchedule: typeof DaemonScheduleTag & {
readonly inMemory: (
initial?: ReadonlyArray<DaemonScheduleEntry>
) => Layer.Layer<DaemonScheduleTag>
readonly empty: Layer.Layer<DaemonScheduleTag>
readonly alwaysArmed: Layer.Layer<DaemonScheduleTag>
readonly at: {
(startAt: Date): DaemonScheduleEntry
(
id: string,
startAt: Date
): DaemonScheduleEntry
}
readonly window: {
(
startAt: Date,
stopAt: Date
): DaemonScheduleEntry
(
id: string,
startAt: Date,
stopAt: Date
): DaemonScheduleEntry
}
readonly fromStarts: (
starts: ReadonlyArray<Date>
) => ReadonlyArray<DaemonScheduleEntry>
readonly define: (
build: (
api: ScheduleDefineApi
) => ReadonlyArray<DaemonScheduleEntry>
) => Layer.Layer<DaemonScheduleTag>
}
DaemonSchedule — schedule storage, CRUD, and sync.
DaemonSchedule.inMemory: (
initial?: ReadonlyArray<DaemonScheduleEntry>
) => Layer.Layer<DaemonScheduleTag>
inMemory(entries: ReadonlyArray<ScheduleEntry>entries);