what is the difference between thunk, futures, and promises?
An example of each, using javascript since everybody can read it. Please don’t use this code in production, use a real library, there are plenty of good ones. var a, b, c, async_obj; // assume exist // CommonJS – for reference purposes try { async_obj.asyncMethod(a, b, c, function (error1, result1) { if (error1) { console.error(error1); … Read more