* Stop the pool
()
| 175 | * Stop the pool |
| 176 | */ |
| 177 | async stop() { |
| 178 | debug('Stopping pool for context %s', this.context.name); |
| 179 | if (this.pool == null) return; |
| 180 | await this.pool.drain(); |
| 181 | await this.pool.clear(); |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Acquire a new instance |