Skip to content

Commit

Permalink
fix(cli/dts): sleepSync doesn't return a Promise (#10358)
Browse files Browse the repository at this point in the history
Per its name its synchronous for the current thread
  • Loading branch information
AaronO authored Apr 24, 2021
1 parent fd3b961 commit 201185f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/dts/lib.deno.unstable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down

0 comments on commit 201185f

Please sign in to comment.