Skip to main content

Function: validateTimeoutMs()

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / validateTimeoutMs

Function: validateTimeoutMs()

validateTimeoutMs(timeoutMs, name): number

Defined in: packages/gala-core-sdk/dist/index.d.ts:1846

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

Parameters​

timeoutMs​

number

name​

string

Returns​

number

Throws​

GalaSDKError INVALID_TIMEOUT (params.field = name) otherwise.