If I run this top level async function, the program prints but then doesn't exit.async function print() { console.log('print') } print() Same with this(async function print() { console.log('print') })() Why does it work like this in the first place?If I want the program to terminate, do I need a process.exit()?
Submitted August 24, 2018 at 10:03AM by nowboarding
No comments:
Post a Comment