You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 22, 2021. It is now read-only.
In the spirit of needless optimizations, we may be able to reduce the code by a few bytes if we use the new Node 8 util.promisify() in a couple places.
And in theory the above will resolve with the reply object or reject with the err object.
I don't think we can use it in all the places we're using wrapper Promise objects though.
The text was updated successfully, but these errors were encountered:
In the spirit of needless optimizations, we may be able to reduce the code by a few bytes if we use the new Node 8
util.promisify()
in a couple places.Ref: http://2ality.com/2017/05/util-promisify.html
For example, instead of this:
... we may be able to shorten to:
And in theory the above will resolve with the
reply
object or reject with theerr
object.I don't think we can use it in all the places we're using wrapper Promise objects though.
The text was updated successfully, but these errors were encountered: