4 ms·
Well at least in my mental model a Promise is an object that eventually resolves to something within its .then() method. In contrast my mental model of await is
by ujal 9y ago
Well at least in my mental model a Promise is an object that eventually resolves to something within its .then() method. In contrast my mental model of await is that of a blocking call. One can internalize the latter without the former.