Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove memory leak from guaranteed unresolved/unrejected Promise.
I question whether or not we want to actually guarantee async execution of this method and not give the opportunity to the user to actually make it block if they'd like to, but we certainly should ensure that Promises should not be created on every request and never resolve or reject, which seems like a prime avenue for a DoS via memory leak. Of course, these should be garbage collected eventually, but we can avoid creating them that way.
- Loading branch information