MCPcopy
hub / github.com/dotnet/vscode-csharp / constructor

Method constructor

src/compositeDisposable.ts:12–22  ·  view source on GitHub ↗
(...disposables: IDisposable[])

Source from the content-addressed store, hash-verified

10 private disposables = new Subscription();
11
12 constructor(...disposables: IDisposable[]) {
13 super(() => this.disposables.unsubscribe());
14
15 for (const disposable of disposables) {
16 if (disposable) {
17 this.add(disposable);
18 } else {
19 throw new Error('null disposables are not supported');
20 }
21 }
22 }
23
24 public add(disposable: IDisposable) {
25 if (!disposable) {

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected