Method
constructor
(...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
Tested by
no test coverage detected