You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Might be me not grasping Q. But it's real confusing that you can't do
promise.ninvoke('hello','world')
Here's a full example:
"use strict"varQ=require('q');varlog=console.log.bind(console);functiontestObj(cb){cb(null,{hello: function(name,cb){if(cb)cb(null,'hello '+name);elsereturn'hello '+name;}})}// following will throw in end, but using invoke instead of ninvoke makes it workQ.ncall(testObj).ninvoke('hello','world').then(log).end();
The text was updated successfully, but these errors were encountered:
Might be me not grasping Q. But it's real confusing that you can't do
promise.ninvoke('hello','world')
Here's a full example:
The text was updated successfully, but these errors were encountered: