Closed c19 closed 5 years ago
This PR would break current API, wouldn't it?
This PR would break current API, wouldn't it?
Yes, we could add another API to satisfy different style of async code and keep backward compatible. I'll leave that for you decide.
To make current API valid, how about renaming suggested promise versions to finishedP
and finishedWithErrorP
and not making changes to current finished
functions?
updated.
finished function return a promise instead of using a callback.