nit: Math.min(latency, this._maxLatency)