const cron = Effect.repeat(
pipe(
Effect.sync(() => new Date()),
Effect.flatMap((d) => Console.log("it's an even number of minutes!", d)),
),
Schedule.cron("*/2 * * * *"),
);
const cron = Effect.repeat(
pipe(
Effect.sync(() => new Date()),
Effect.flatMap((d) => Console.log("it's an even number of minutes!", d)),
),
Schedule.cron("*/2 * * * *"),
);