Skip to main content

index/functions/validateTimeoutMs.md

validateTimeoutMs(timeoutMs, name): number

Validates a request timeout in milliseconds: a positive finite number, or Infinity for none.

Parameters​

ParameterType
timeoutMsnumber
namestring

Returns​

number

Throws​

GalaSDKError INVALID_TIMEOUT (params.field = name) otherwise.