Should app.listen also return a promise?
See original GitHub issuehttps://github.com/koajs/koa/blob/master/lib/application.js#L62 currently returning server.listen()
, thoughts?
Issue Analytics
- State:
- Created 10 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Express app.listen returns Promise { Server {} } - Stack Overflow
I have a startup function that connects to database, then returns a Server with app.listen(). The issue is that if I return app.listen...
Read more >Express.js | app.listen() Function - GeeksforGeeks
The app.listen() function is used to bind and listen the connections on the specified host and port. This method is identical to Node's...
Read more >Using Express.js Routes for Promise-based Error Handling
Finally, we specify what to do if no route is found, and how to handle errors, which we will change later. The script...
Read more >Using async/await in Express.js - Ioannis Ioannou
Given that func is wrapped using Promise.resolve() , the asyncHandler can also be used with non async functions. Complete Example. const ...
Read more >Supporting Promises in Express Middleware - Mastering JS
In order to make sure your Express app doesn't hang forever, you need to make sure your middleware functions call next() and your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What would that accomplish?
I find it useful, just need to be certain that it’s not going to change and turn into some giant wtf