Hyperlinkv0.8.0-beta.28

Process

Process.atfunctionsrc/Process.ts:1853
(startAt: Date): ScheduleWindow
(id: string, startAt: Date): ScheduleWindow

A point window (open-ended — no stop). The leading id is optional.

Process.at(startDate)            // nameless
Process.at("daily-2am", startDate)
schedule
Source src/Process.ts:185311 lines
export function at(startAt: Date): ScheduleWindow;
export function at(id: string, startAt: Date): ScheduleWindow;
export function at(idOrStartAt: string | Date, maybeStartAt?: Date): ScheduleWindow {
  if (idOrStartAt instanceof Date) {
    return { id: Option.none(), startAt: idOrStartAt, stopAt: Option.none() };
  }
  if (maybeStartAt === undefined) {
    throw new Error("Process.at(id, startAt): startAt is required");
  }
  return { id: toWindowId(idOrStartAt), startAt: maybeStartAt, stopAt: Option.none() };
}