We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c8667 commit 23383faCopy full SHA for 23383fa
src/vs/base/common/async.ts
@@ -417,6 +417,7 @@ export class ThrottledDelayer<T> {
417
418
dispose(): void {
419
this.delayer.dispose();
420
+ this.throttler.dispose();
421
}
422
423
src/vs/base/test/common/async.test.ts
@@ -255,6 +255,12 @@ suite('Async', () => {
255
// OK
256
257
});
258
+
259
+ test('trigger after dispose throws', async () => {
260
+ const throttledDelayer = new async.ThrottledDelayer<void>(100);
261
+ throttledDelayer.dispose();
262
+ await assert.rejects(() => throttledDelayer.trigger(async () => { }, 0));
263
+ });
264
265
266
test('simple cancel', function () {
0 commit comments