MCPcopy Create free account
hub / github.com/effect-app/libs / cron

Function cron

repos/effect/packages/effect/src/Schedule.ts:1392–1400  ·  view source on GitHub ↗
(expression: string | Cron.Cron, tz?: string | DateTime.TimeZone)

Source from the content-addressed store, hash-verified

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 *

Callers

nothing calls this directly

Calls 6

fromStepFunction · 0.85
parseMethod · 0.80
syncMethod · 0.80
mapMethod · 0.65
nextMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…