From c5efcc9b846abea0b3e947993e4c9bee4e6403ca Mon Sep 17 00:00:00 2001 From: waiting Date: Tue, 5 Nov 2024 00:14:50 +0800 Subject: [PATCH] chore(core): add comment of DataSourceManager.stop() (#4130) --- packages/core/src/common/dataSourceManager.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/common/dataSourceManager.ts b/packages/core/src/common/dataSourceManager.ts index d295e542d0b..8f375575259 100644 --- a/packages/core/src/common/dataSourceManager.ts +++ b/packages/core/src/common/dataSourceManager.ts @@ -189,6 +189,9 @@ export abstract class DataSourceManager< protected abstract checkConnected(dataSource: T): Promise; protected abstract destroyDataSource(dataSource: T): Promise; + /** + * Call destroyDataSource() on all data sources + */ public async stop(): Promise { const arr = Array.from(this.dataSource.values()); await Promise.all(