You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.
This creates a bootstrap hazard between listening to a port and connecting to a database.
While the best practice is to bootstrap the server asynchronously, introducing top level await would provide a crude mechanism to avoid those hazards. Developers could then easily migrate to an async bootstrap as a more advanced technique.
The text was updated successfully, but these errors were encountered:
As Top-Level Await has reached Stage 3 and is in the process of being implemented I'm going to close this issue in lieu of the tracking issue for the implementation across vendors #113
In Node.js, a lot of inexperienced developers do the following:
then in another file:
This creates a bootstrap hazard between listening to a port and connecting to a database.
While the best practice is to bootstrap the server asynchronously, introducing top level await would provide a crude mechanism to avoid those hazards. Developers could then easily migrate to an async bootstrap as a more advanced technique.
The text was updated successfully, but these errors were encountered: