What is the promise disposer pattern?
The issue with your code The problem with the above approach is that if you forget releasing the connection after every single time you perform getDb you have a resource leak that might freeze your app eventually when it runs out of the resource you’re leaking. You might, in one place do: var users = … Read more