Skip to content
Still using @dfinity/agent? Migrate to @icp-sdk/core!

chain

chain(…strategies): PollStrategy

Defined in: packages/agent/src/polling/strategy.ts:131

Chain multiple polling strategy. This chains the strategies, so if you pass in, say, two throttling strategy of 1 second, it will result in a throttle of 2 seconds.

PollStrategy[]

A strategy list to chain.

PollStrategy