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. (#149723)" (#149742)

This reverts commit 2c97c80.
  • Loading branch information
alexdima committed May 17, 2022
1 parent aa2996c commit 7ca85c3
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 7ca85c3

Please sign in to comment.