Asynchronous Functions and Promises belong in the same category but they aren't the same thing; Promises are Promises and Asynchronous Functions return Promises.
Input value | getType() returns |
is<Type>() function(s) |
---|---|---|
new Promise((resolve) => {}) |
Promise |
isPromise() |
async function() {} |
AsyncFunction |
isAsyncFunction() , isCallable() |