Skip to main content
Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
94%
Published
3 months ago (0.0.3)

A module providing a function to sleep for a given number of milliseconds

Examples

Example 1

import { greet } from "jsr:@irbull/sleep@1";

await sleep(1000);

Add Package

deno add @ib/sleep

Import symbol

import * as mod from "@ib/sleep";

Add Package

npx jsr add @ib/sleep

Import symbol

import * as mod from "@ib/sleep";

Add Package

yarn dlx jsr add @ib/sleep

Import symbol

import * as mod from "@ib/sleep";

Add Package

pnpm dlx jsr add @ib/sleep

Import symbol

import * as mod from "@ib/sleep";

Add Package

bunx jsr add @ib/sleep

Import symbol

import * as mod from "@ib/sleep";