Removing timer function.
This function isn't used, and there's a similar function 'promiseTimeout' in core anyway.
This commit is contained in:
Родитель
b4621c1d4a
Коммит
016fd34c2e
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче