Files
2026-03-27 15:44:21 +08:00

20 lines
366 B
JavaScript

'use strict';
const PromiseConnection = require('./connection.js');
class PromisePoolConnection extends PromiseConnection {
constructor(connection, promiseImpl) {
super(connection, promiseImpl);
}
destroy() {
return this.connection.destroy();
}
async [Symbol.asyncDispose]() {
this.release();
}
}
module.exports = PromisePoolConnection;