Skip to content

okio / okio / Timeout / throwIfReached

throwIfReached

(jvm) open fun throwIfReached():Unit

Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted. This method doesn’t detect timeouts; that should be implemented to asynchronously abort an in-progress operation.