-
Notifications
You must be signed in to change notification settings - Fork 97
ES6 Promises Instead of Deprecation Warning #54
Comments
If all that is blocking is user legacy code, it could potentially be shipped behind a flag ( I am a big fan of the idea, but I don't know how much the deprecated calls are in use, and how many libraries we would potentially break. |
Could you please describe in more detail how this would work / what you are looking for? |
@Fishrock123 I think this is about making |
@Fishrock123 what @addaleax just described |
This sounds like a pretty neat feature. Would be interesting to see how many things it would break but given that the old behavior is already deprecated..? I definitely wrote multiple |
This is more-or-less requesting a port of nodejs/node#5020, which didn't land in Node at the time.
None. The deprecation is not about the same thing. @addaleax could you please update the title to reflect the request better? |
Currently, when using asynchronous functions without callbacks the system gives a deprecation warning. Can it return a promise instead? That way it can be used in an async/await style.
Based on what I know this couldn't be done in Node because of all user's legacy codes.
The text was updated successfully, but these errors were encountered: