Async function as callback

I just started using async/await and is confused on how it interacts with callback. For example, fooMethod(function() { return Promise.resolve("foo"); }); vs fooMethod(async function() { //add async keyword return "foo"; }); Must fooMe...
more »

| javascript   2017-07-18 21:07 (2) Answers