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

promises #78

Merged
3 commits merged into from
Oct 4, 2019
Merged

promises #78

3 commits merged into from
Oct 4, 2019

Conversation

UziTech
Copy link
Contributor

@UziTech UziTech commented Dec 30, 2018

Async functions return a promise unless a callback is provided

@UziTech UziTech changed the title promises WIP: promises Dec 30, 2018
@UziTech UziTech changed the title WIP: promises promises Apr 23, 2019
@UziTech
Copy link
Contributor Author

UziTech commented May 21, 2019

@MiguelSolano This would be a big improvement. To be able to use promises and async/await.

This is fully backwards compatible. If a callback is given the asynchronous functions act the same as before. If no callback is given they return a promise instead of undefined.

Can we get this merged?

@UziTech UziTech mentioned this pull request Aug 22, 2019
@paulmelnikow
Copy link

Hi @UziTech, I wonder if you've seen https://github.com/benjamingr/tmp-promise. It's an established solution that wraps this library, and is widely used. It has an expressive interface that includes a cleanup function, and a few tests.

What do you think about that interface?

(See benjamingr/tmp-promise#36)

@UziTech
Copy link
Contributor Author

UziTech commented Sep 26, 2019

I believe tmp-promise wraps tmp not temp.

@paulmelnikow
Copy link

Ha! You're right.

@ghost ghost self-requested a review October 4, 2019 15:11
@ghost ghost added the enhancement new feature or improvement on existing feature label Oct 4, 2019
@ghost ghost merged commit 8c7b13c into bruce:master Oct 4, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature or improvement on existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants