()
| 648 | } |
| 649 | |
| 650 | async cleanup(): Promise<void> { |
| 651 | const dispose = this.lifecycleDispose; |
| 652 | this.lifecycleDispose = null; |
| 653 | if (dispose) { |
| 654 | await dispose(); |
| 655 | return; |
| 656 | } |
| 657 | await this.closeResources(); |
| 658 | } |
| 659 | |
| 660 | private async closeResources(): Promise<void> { |
| 661 | if (this.resourcesClosed) return; |
no test coverage detected