Skip to content

[Question] Why not get a promise as a param instead of a function? #8

Answered by kettanaito
eduardosada asked this question in Q&A
Discussion options

You must be logged in to vote

I like how passing a function creates a new scope in which a promise is created, as opposed to accepting a promise potentially created elsewhere. I don't have any hard opinion on this, so if you think an alternative call signature makes more sense, I wouldn't mind changing it.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kettanaito
Comment options

Answer selected by kettanaito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #6 on May 12, 2021 15:44.