Skip to content

feat(micro-utilities): add delay and sleep-promise to replacements - #1305

Open
maksimgm wants to merge 1 commit into
e18e:mainfrom
maksimgm:feat/delay
Open

maksimgm wants to merge 1 commit into
e18e:mainfrom
maksimgm:feat/delay

Conversation

@maksimgm

Copy link
Copy Markdown
Contributor

🔗 Linked issue

closes #1285

📚 Description

adds delay (~7.8M weekly downloads) and sleep-promise (~1.1M) to micro-utilities with a new snippet::delay. it uses setTimeout from node:timers/promises, and the description mentions wrapping setTimeout in a promise for browsers, as discussed in the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Replacement]: delay and sleep-promise

1 participant