MCPcopy Create free account
hub / github.com/AudiusProject/apps / racePromiseWithTimeout

Method racePromiseWithTimeout

packages/libs/src/utils/utils.ts:219–229  ·  view source on GitHub ↗

* If `promise` responds before `timeoutMs`, * this function returns its response; else rejects with `timeoutMessage`

(
    promise: Promise<void>,
    timeoutMs: number,
    timeoutMessage: string
  )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 1

raceMethod · 0.80

Tested by

no test coverage detected