ktor-client-core / io.ktor.client.features / convertLongTimeoutToLongWithInfiniteAsZero

convertLongTimeoutToLongWithInfiniteAsZero

fun convertLongTimeoutToLongWithInfiniteAsZero(timeout: Long): Long

Convert long timeout in milliseconds to long value. To do that we need to consider HttpTimeout.INFINITE_TIMEOUT_MS as zero and convert timeout value to Int.