* Close any (perhaps partially initialised) plugins.
()
| 381 | * Close any (perhaps partially initialised) plugins. |
| 382 | */ |
| 383 | private async pluginsShutdown () { |
| 384 | const shutdownPromises = Object.keys(this.services.plugins).reduce((promises, pluginName) => { |
| 385 | const plugin = this.services.plugins[pluginName] |
| 386 | if (plugin.close) { |
| 387 | promises.push(plugin.close()) |
| 388 | } |
| 389 | return promises |
| 390 | }, [] as Array<Promise<void>> ) |
| 391 | await Promise.all(shutdownPromises) |
| 392 | this.transition('plugins-closed') |
| 393 | } |
| 394 | |
| 395 | /** |
| 396 | * Begin deepstream shutdown. |
nothing calls this directly
no test coverage detected