Skip to content

okio / okio / Timeout / timeout

timeout

(jvm) open fun timeout(timeout:Long, unit:TimeUnit):Timeout

Wait at most timeout time before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.

If timeout == 0, operations will run indefinitely. (Operating system timeouts may still apply.)