This commit is contained in:
Joao Moreno
2019-01-23 09:18:13 +01:00
parent fd8dd511d3
commit f620b3df49
4 changed files with 8 additions and 15 deletions

View File

@@ -1167,8 +1167,3 @@ export function animate(fn: () => void): IDisposable {
let stepDisposable = scheduleAtNextAnimationFrame(step);
return toDisposable(() => stepDisposable.dispose());
}
export function timeout(fn: () => void, millis: number): IDisposable {
const timer = setTimeout(fn, millis);
return toDisposable(() => clearTimeout(timer));
}