New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async issue on app.listen(...) #1783
Comments
https://github.com/Lucyfurnice/koa-test link is not working |
oops, I put the markup backwards. |
after reviewing the library source for |
I realise you've done some investigation yourself and pretty much answered your own question. But just to confirm before I close the issue, yes, it'n not necessarily a bug but just a side effect of how events works! I'm closing this issue but feel free re-open if I misunderstood this ticket as "invalid". |
Describe the bug
app.listen
happens after
process.exit
Node.js version:
v18.18.2 LTS
OS version:
Microsoft Windows [Version 10.0.22621.2428]
Description:
Process.exit is happening before app.listen(...)
Actual behavior
app.listen(...) happens after process.exit(...)
Expected behavior
app.listen loops until ctrl+c then main function returns error code, and then process exits with main function error code.
Code to reproduce
lucyfurnice/koa-test
Checklist
The text was updated successfully, but these errors were encountered: