-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add promise example #56
Comments
You can use or give a look to my module node-fibers-synchronize-helper that uses this module synchronize index.js const inquirer = require('inquirer'); synchProm.executeSynch(function () {
}, function (err, res) { result: You can give a look at my implementation https://github.com/zakdav/node-fibers-synchronize-helper/blob/master/index.js In your case i called this methods var executePromiseFiberIntFn = function (obj, fn, params) { var runPromiseFiberFn = function (obj, fn, params, defer) {
} |
So there isn't any "straight" (without additional code/helpers) way of calling inquirer using synchronize? I tried various permutations of await, defer(), etc, and also could never get it working. |
The problem is that
You could make things look slightly nicer by using nodes |
Hi, I'm trying to get Synchronize.js working with Inquirer but I've tried everything and can't get it to work with its promises:
package.json
index.js
I've tried every permutation, even variations of #41 but can't get it to work.
Can you update your documentation for promises? Or else show how to de-promisify something? I tried wrapping the promise in my own callback function to fit the form of your examples but it still didn't work for some reason.
By comparison, here's the same example with asyncawait and Inquirer:
package.json
index.js
Thanx!
The text was updated successfully, but these errors were encountered: