1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

fix(cli/dts): sleepSync doesn't return a Promise (#10358)

Per its name its synchronous for the current thread
This commit is contained in:
Aaron O'Mullan 2021-04-25 00:48:43 +02:00 committed by GitHub
parent fd3b961126
commit 201185f9fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1124,7 +1124,7 @@ declare namespace Deno {
* Deno.sleepSync(10);
* ```
*/
export function sleepSync(millis: number): Promise<void>;
export function sleepSync(millis: number): void;
export interface Metrics extends OpMetrics {
ops: Record<string, OpMetrics>;