Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API examples #22

Closed
wants to merge 2 commits into from
Closed

Add API examples #22

wants to merge 2 commits into from

Conversation

tshemsedinov
Copy link
Member

No description provided.

@tshemsedinov tshemsedinov added the enhancement New feature or request label Aug 11, 2020
@tshemsedinov tshemsedinov self-assigned this Aug 11, 2020
@@ -0,0 +1,3 @@
async ({ delay }) => new Promise(resolve => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to use the util.promisify(setTimeout) defined somewhere as it is more robust and handles more use cases (like new AbortController) (PTAL node-core:lib/timers/promises.js)

tshemsedinov added a commit that referenced this pull request Aug 11, 2020
@tshemsedinov
Copy link
Member Author

Landed in c054a0f

@tshemsedinov tshemsedinov deleted the api-methods branch November 6, 2020 17:46
MarhiievHE pushed a commit to MarhiievHE/Example that referenced this pull request Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants