()
| 19 | * Also exposed on the shell SDK (`utils.makeSequence`) for unbundled plugins. |
| 20 | */ |
| 21 | export function makeSequence(): Sequence { |
| 22 | let current = 0; |
| 23 | return { |
| 24 | next: () => ++current, |
| 25 | isCurrent: (ticket: number) => ticket === current, |
| 26 | invalidate: () => { |
| 27 | current += 1; |
| 28 | }, |
| 29 | }; |
| 30 | } |
no outgoing calls
no test coverage detected