Why nitro doesn't wait for async plugins to complete operation?
I have a plugin that connects to mongodb. But connecting to mongodb takes some times. But nitro doesn't wait for that plugin to execute completely and then start the server. Instead it starts immediately (before connecting to mongodb) and starts responding. As a result error occurs.
Plugin code=>
Plugin code=>