Skip to content

Commit

Permalink
Revert "Adopt setTimeout0() which doesn't suffer from the 4ms artif…
Browse files Browse the repository at this point in the history
…icial delay that browsers set when the nesting level is > 5. (microsoft#149723)" (microsoft#149742)

This reverts commit 2c97c80.
  • Loading branch information
alexdima authored and wannieman98 committed May 17, 2022
1 parent f7e4162 commit ab99c94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vs/base/test/common/timeTravelScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import { Emitter, Event } from 'vs/base/common/event';
import { Disposable, IDisposable } from 'vs/base/common/lifecycle';
import { setTimeout0 } from 'vs/base/common/platform';

interface PriorityQueue<T> {
length: number;
Expand Down Expand Up @@ -179,7 +178,7 @@ export class AsyncSchedulerProcessor extends Disposable {
if (this.useSetImmediate) {
originalGlobalValues.setImmediate(() => this.process());
} else {
setTimeout0(() => this.process());
originalGlobalValues.setTimeout(() => this.process());
}
});
}
Expand Down

0 comments on commit ab99c94

Please sign in to comment.