MCPcopy Create free account
hub / github.com/coopernurse/node-pool / constructor

Method constructor

lib/ResourceRequest.js:22–30  ·  view source on GitHub ↗

* [constructor description] * @param {Number} ttl timeout

(ttl, Promise)

Source from the content-addressed store, hash-verified

20 * @param {Number} ttl timeout
21 */
22 constructor(ttl, Promise) {
23 super(Promise);
24 this._creationTimestamp = Date.now();
25 this._timeout = null;
26
27 if (ttl !== undefined) {
28 this.setTimeout(ttl);
29 }
30 }
31
32 setTimeout(delay) {
33 if (this._state !== ResourceRequest.PENDING) {

Callers

nothing calls this directly

Calls 1

setTimeoutMethod · 0.95

Tested by

no test coverage detected