rogierschouten / async-lock

Lock on asynchronous code for Nodejs
MIT License
394 stars 50 forks source link

#17: replace Promise.defer() with new Promise() #18

Closed jtyers closed 5 years ago

jtyers commented 6 years ago

This PR removes use of Promise.defer(), which is deprecated and causes bluebird , and perhaps other Promise libraries, to emit console warnings when used. The supported way of doing things is to use new Promise(...) instead.

Fixes #17.

rogierschouten commented 5 years ago

@jtyers Thank you for the PR, and my apologies for the delay in merging this.