( a: ExecutionLastStartedBlock | undefined, b: ExecutionLastStartedBlock | undefined )
| 130 | * holds it. ISO UTC timestamps compare correctly lexicographically. |
| 131 | */ |
| 132 | export function pickLatestStartedMarker( |
| 133 | a: ExecutionLastStartedBlock | undefined, |
| 134 | b: ExecutionLastStartedBlock | undefined |
| 135 | ): ExecutionLastStartedBlock | undefined { |
| 136 | if (!a) return b |
| 137 | if (!b) return a |
| 138 | return a.startedAt >= b.startedAt ? a : b |
| 139 | } |
| 140 | |
| 141 | /** Pick the later of two last-completed markers by `endedAt`. See {@link pickLatestStartedMarker}. */ |
| 142 | export function pickLatestCompletedMarker( |
no outgoing calls
no test coverage detected