MCPcopy Create free account
hub / github.com/IoTChainCode/itc-ts / timeout

Method timeout

src/common/ControlledPromise.ts:115–120  ·  view source on GitHub ↗

* Sets timeout to reject promise automatically. * @param {String|Error|Function} [reason] rejection value. If it is string or error - promise will be rejected with * that error. If it is function - this function will be called after delay where you can manually resolve or reject * pro

(ms: number, reason)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

openMethod · 0.80
closeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected