Skip to content

Commit

Permalink
chore(core): add comment of DataSourceManager.stop() (#4130)
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong authored Nov 4, 2024
1 parent 30371dd commit c5efcc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/common/dataSourceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ export abstract class DataSourceManager<
protected abstract checkConnected(dataSource: T): Promise<boolean>;
protected abstract destroyDataSource(dataSource: T): Promise<void>;

/**
* Call destroyDataSource() on all data sources
*/
public async stop(): Promise<void> {
const arr = Array.from(this.dataSource.values());
await Promise.all(
Expand Down

0 comments on commit c5efcc9

Please sign in to comment.