Skip to content

Instantly share code, notes, and snippets.

@espio999
Last active February 21, 2026 01:54
Show Gist options
  • Select an option

  • Save espio999/da0b8f7853169327f16a0beef5fa23da to your computer and use it in GitHub Desktop.

Select an option

Save espio999/da0b8f7853169327f16a0beef5fa23da to your computer and use it in GitHub Desktop.
console.log("main logic - start");
(async () => {
try{
if (isInlineExecuted) {
console.log("main logic - standby");
await gate;
}
}
catch(e){
console.log("error occured in inline logic");
}
finally{
console.log("main logic - executed");
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment