Function script::dom::countqueuingstrategy::extract_high_water_mark

source ยท
pub fn extract_high_water_mark(
    strategy: &QueuingStrategy,
    default_hwm: f64,
) -> Result<f64, Error>
Expand description

Extract the high water mark from a QueuingStrategy. If the high water mark is not set, return the default value.

https://streams.spec.whatwg.org/#validate-and-normalize-high-water-mark