readTimeout

abstract fun readTimeout(timeout: Long, timeUnit: TimeUnit): ApiClient.Builder

Return

the same Builder instance

Parameters

timeout

the read timeout for new connections.

A value of 0 means no timeout, otherwise values must be between 1 and MAX_VALUE when converted to milliseconds.

timeUnit

the unit of the timeout argument