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:
parent
fd3b961126
commit
201185f9fb
1 changed files with 1 additions and 1 deletions
2
cli/dts/lib.deno.unstable.d.ts
vendored
2
cli/dts/lib.deno.unstable.d.ts
vendored
|
@ -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>;
|
||||
|
|
Loading…
Reference in a new issue