Skip to content

Commit

Permalink
Add Sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Aug 29, 2024
1 parent 35b6bc0 commit ec94e3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v21.0.1

- :bug: Fix typing on sleep

### v21.0.0

- :arrow_up: Update Drizzle to latest version
Expand Down
2 changes: 1 addition & 1 deletion lib/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class Pool<TSchema extends Record<string, unknown> = Record<strin
}
}

function sleep(ms) {
function sleep(ms: number) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
Expand Down

0 comments on commit ec94e3f

Please sign in to comment.