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 was archived by the owner on Mar 31, 2018. It is now read-only.
Similar to #5 I'm looking at ways to make the lives of callback users easier with async/await landing. I'm wondering if core should provide a method called toCallback that takes an async function and converts it to a callback returning function. This is similar to asCallback except taking a function:
asyncfunctionfooP(){// some async/await stuff// ...return"Hello";}constfoo=util.toCallback(fooP);foo((err,data)=>console.log(data));// hello
Similar to #5 I'm looking at ways to make the lives of callback users easier with
async/awaitlanding. I'm wondering if core should provide a method calledtoCallbackthat takes an async function and converts it to a callback returning function. This is similar toasCallbackexcept taking a function:The name and where it is are both debatable.