// latest.js — overlapping async calls: only the newest one's answer is applied. export class Latest { n = 0; next() { return ++this.n; } is(k) { return k === this.n; } }