async

node v16.18.0
version: 16.0.0
endpointsharetweet
const p = Promise.resolve(); (async () => { await p; console.log('after:await'); })(); p.then(() => console.log('tick:a')) .then(() => console.log('tick:b'));
Loading…

no comments

    sign in to comment