This function isn't used, and there's a similar function 'promiseTimeout' in core anyway.
This commit is contained in:
Eric Cornelson 2019-03-18 15:07:38 -05:00
Родитель b4621c1d4a
Коммит 016fd34c2e
1 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -60,15 +60,3 @@ export function setConditionalBreakpoint(client: DebugClient, location: { path:
source: { path: location.path }
});
}
/**
* Set a timer. (Note: this method should be used SPARINGLY, if at all, as it will tend to make tests non-deterministic)
* @param ms Milliseconds to wait
*/
export function timer(ms: number): Promise<any> {
return new Promise((a, r) => {
setTimeout(() => {
a();
}, ms);
});
}