Promise support (Purposal)
See original GitHub issueWould be great to support Promises and also keep callback support.
I purpose something where memcached.gets('foo', function);
would still work as today and memcached.gets('foo');
would return a Promise object that rejects on error and resolves on success.
What do you think ? I can make a PR if there are interest.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:33
- Comments:7
Top Results From Across the Web
Promise - JavaScript - MDN Web Docs
Creates a new Promise object. The constructor is primarily used to wrap functions that do not already support promises. Static methods. Promise.
Read more >Support for Distributed Promise Pipelining details
This proposal adds eventual-send operations to JavaScript Promises, to express invocation of operations on potentially remote objects. We introduce the notion ...
Read more >Delivering on a Promise | PMI
The way your organization handles proposals has a big impact on the projects ... Delivering on a Promise: Bridge the Gap Between Proposal...
Read more >RFP: A Promise to BMORE
The resources that will be allocated will support organizations and environments that are comfortable, welcoming, caring, and non-judgmental of older youth.
Read more >Promises/A - CommonJS Spec Wiki
Proposal. A promise represents the eventual value returned from the single completion of an operation. A promise may be in one of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That would be really great! I have an async/await flow in my server and at the moment I have to use Node 8 util.promisify functionality to enable promises.
@mapleeit would you mind creating new release with the promise-based support? thanks.