console.log("doing");
try {
await main();
console.log("done!");
} catch (error) {
console.error("An error occursed:", error);
} finally {
// Keep the program running until all asynchronous operations are complete
await new Promise((resolve) => setTimeout(resolve, 0));
console.log("now done");
}
console.log("really done");
console.log("doing");
try {
await main();
console.log("done!");
} catch (error) {
console.error("An error occursed:", error);
} finally {
// Keep the program running until all asynchronous operations are complete
await new Promise((resolve) => setTimeout(resolve, 0));
console.log("now done");
}
console.log("really done");