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

Method push

lib/Queue.js:20–24  ·  view source on GitHub ↗

* Adds the obj to the end of the list for this slot * we completely override the parent method because we need access to the * node for our rejection handler * @param {any} resourceRequest [description]

(resourceRequest)

Source from the content-addressed store, hash-verified

18 * @param {any} resourceRequest [description]
19 */
20 push(resourceRequest) {
21 const node = DoublyLinkedList.createNode(resourceRequest);
22 resourceRequest.promise.catch(this._createTimeoutRejectionHandler(node));
23 this._list.insertEnd(node);
24 }
25
26 _createTimeoutRejectionHandler(node) {
27 return reason => {

Callers 6

constructorMethod · 0.45
enqueueMethod · 0.45
destroyMethod · 0.45
destroyMethod · 0.45

Calls 3

createNodeMethod · 0.80
insertEndMethod · 0.80

Tested by

no test coverage detected