Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/entries/universal.ts>sleep

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
function sleep
import { sleep } from "https://deno.land/x/earthstar@v10.0.0/src/entries/universal.ts";

Returns a promise which is fulfilled after a given number of milliseconds.

Parameters

ms: number

Returns

Promise<void>