Update app and tooling
This commit is contained in:
parent
3046531bdd
commit
e620ec7349
4950 changed files with 2975120 additions and 10 deletions
29
node_modules/generic-pool/lib/ResourceLoan.js
generated
vendored
Normal file
29
node_modules/generic-pool/lib/ResourceLoan.js
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
"use strict";
|
||||
|
||||
const Deferred = require("./Deferred");
|
||||
|
||||
/**
|
||||
* Plan is to maybe add tracking via Error objects
|
||||
* and other fun stuff!
|
||||
*/
|
||||
|
||||
class ResourceLoan extends Deferred {
|
||||
/**
|
||||
*
|
||||
* @param {any} pooledResource the PooledResource this loan belongs to
|
||||
* @return {any} [description]
|
||||
*/
|
||||
constructor(pooledResource, Promise) {
|
||||
super(Promise);
|
||||
this._creationTimestamp = Date.now();
|
||||
this.pooledResource = pooledResource;
|
||||
}
|
||||
|
||||
reject() {
|
||||
/**
|
||||
* Loans can only be resolved at the moment
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ResourceLoan;
|
||||
Loading…
Add table
Add a link
Reference in a new issue