timeoutMillis

fun timeoutMillis(default: Long): Long

Parses a timeout value in milliseconds from the JSON object. If the field is missing, returns the provided default value. If the field is present but not a long integer, a JsonConfigError.InvalidType is thrown.

Return

The parsed timeout value in milliseconds, or the default if the field is missing.

Parameters

default

The default timeout value to return if the field is missing (default is 15,000 milliseconds).