import type { Option } from "../../Option"; import type { EIO, IO, Task } from "../Task/model"; import type { StepFunction } from "./Decision"; export const URI = "Schedule"; export type URI = typeof URI; export interface Schedule { readonly step: StepFunction; } export interface ScheduleExecutor { readonly next: (input: I) => Task, O>; readonly last: EIO; readonly reset: IO; }