MCPcopy Create free account
hub / github.com/Effect-TS/effect / maxDuration

Function maxDuration

packages/effect/src/Schedule.ts:652–660  ·  view source on GitHub ↗
(results: ReadonlyArray<Duration.Duration | undefined>)

Source from the content-addressed store, hash-verified

650 ))
651
652const maxDuration = (results: ReadonlyArray<Duration.Duration | undefined>): Duration.Duration | undefined => {
653 let max = results[0]
654 for (let i = 1; i < results.length; i++) {
655 max = results[i] && max && Duration.max(max, results[i]!)
656 if (max === undefined) break
657 }
658
659 return max
660}
661
662/**
663 * Returns a new `Schedule` that recurs on the specified `Cron` schedule and

Callers 1

maxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected