(expression: string | Cron.Cron, tz?: string | DateTime.TimeZone)
| 1390 | * |----------|----------|----------|----------| |
| 1391 | * |action------|sleep---|act|-sleep|action----| |
| 1392 | * ``` |
| 1393 | * |
| 1394 | * **Example** (Repeating on aligned windows) |
| 1395 | * |
| 1396 | * ```ts import.meta.vitest |
| 1397 | * import { Duration, Effect, Schedule } from "effect" |
| 1398 | * |
| 1399 | * const program = Effect.gen(function*() { |
| 1400 | * const step = yield* Schedule.toStep(Schedule.windowed("5 seconds")) |
| 1401 | * return yield* step(0, undefined) |
| 1402 | * }) |
| 1403 | * |