2 ms·
I think this is correct behavior. ``` async function run() { try { await new Promise(() => { // The executor function finishes, // but it nev
by cute_boi 3mo ago
I think this is correct behavior.
```
async function run() {
try {
await new Promise(() => {
// The executor function finishes,
// but it never calls resolve() or reject().
});
} finally {
console.log("cleanup");
}
}
```
I never expect cleanup to be logged.