Skip to content

Commit

Permalink
feat: re add sleep func
Browse files Browse the repository at this point in the history
  • Loading branch information
nahoc committed Jul 18, 2024
1 parent 0f136fc commit 29d6fb9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ https://www.npmjs.com/package/@risc0/ui

| Statements | Branches | Functions | Lines |
| --------------------------- | ----------------------- | ------------------------- | ----------------- |
| ![Statements](https://img.shields.io/badge/statements-42.9%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-72.46%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-53.12%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-42.9%25-red.svg?style=flat) |
| ![Statements](https://img.shields.io/badge/statements-42.81%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-71.42%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-51.51%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-42.81%25-red.svg?style=flat) |
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
"version": "0.0.124",
"version": "0.0.125",
"private": false,
"sideEffects": false,
"type": "module",
Expand Down
3 changes: 3 additions & 0 deletions utils/sleep.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function sleep(ms: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, ms));
}

0 comments on commit 29d6fb9

Please sign in to comment.