Skip to content

Commit 567e998

Browse files
authored
fix(toolkit-lib): remove AsyncDisposable from Toolkit (#312)
BREAKING CHANGE: Remove the `AsyncDisposable` interface and `dispose()` method from the `Toolkit` class. These were previously unused and had no effect. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent 719cda7 commit 567e998

File tree

1 file changed

+1
-9
lines changed
  • packages/@aws-cdk/toolkit-lib/lib/toolkit

1 file changed

+1
-9
lines changed

packages/@aws-cdk/toolkit-lib/lib/toolkit/toolkit.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export interface ToolkitOptions {
8181
/**
8282
* The AWS CDK Programmatic Toolkit
8383
*/
84-
export class Toolkit extends CloudAssemblySourceBuilder implements AsyncDisposable {
84+
export class Toolkit extends CloudAssemblySourceBuilder {
8585
/**
8686
* The toolkit stack name used for bootstrapping resources.
8787
*/
@@ -114,14 +114,6 @@ export class Toolkit extends CloudAssemblySourceBuilder implements AsyncDisposab
114114
this.ioHost = withTrimmedWhitespace(ioHost);
115115
}
116116

117-
public async dispose(): Promise<void> {
118-
// nothing to do yet
119-
}
120-
121-
public async [Symbol.asyncDispose](): Promise<void> {
122-
await this.dispose();
123-
}
124-
125117
/**
126118
* Access to the AWS SDK
127119
*/

0 commit comments

Comments
 (0)