Skip to main content

Function: armTimeout()

GalaChain core SDK 1.0.0-rc.8


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

Function: armTimeout()

armTimeout(controller, timeoutMs): () => void

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

Arms the abort timer for a request. Infinity means "never time out": setTimeout would turn it into 1 ms, so no timer is armed at all. Returns a function that disarms it.

Parameters​

controller​

AbortController

timeoutMs​

number

Returns​

() => void