requireNonNegative

internal fun Duration.requireNonNegative(qualifier: String)(source)

Validates that the duration is in fact a non-negative duration.

Throws

if the duration is less than 0