onCancellationRequested listener should not return anything (I think)

This commit is contained in:
Robert
2024-02-07 14:24:33 +00:00
parent bdbd123d32
commit f6efcd5a21

View File

@@ -16,7 +16,7 @@ export class MultiCancellationToken implements CancellationToken {
return this.tokens.some((t) => t.isCancellationRequested);
}
onCancellationRequested<T>(listener: (e: T) => any): Disposable {
onCancellationRequested<T>(listener: (e: T) => void): Disposable {
return new DisposableObject(
...this.tokens.map((t) => t.onCancellationRequested(listener)),
);