Sharing Top Content from the Angular-sphere.

Q’s Node Resolver Will Aggregate Results In An Array When Necessary

  • // I invoke the given node-style callback with ONE result.
  • The callback proxy, generated by the .makeNodeResolver() method, will only ever pass one argument down the promise chain.
  • If the callback receives a single result, Q’s .makeNodeResolver() will pass it through, as is, to the promise chain.
  • The MySQL driver will actually provide two results to its .
  • There is only one result parameter.

Read the full article, click here.


@JavaScriptKicks: “Q’sβ€…Node Resolver Will Aggregate Results In An Array When Necessary #javascript #angularjs”


Ben Nadel demonstrates that Q’s .makeNodeResolver() method will aggregate results in an array if the internal callback receives more than one result object which needs to be passed down through the promise chain.


Q’s Node Resolver Will Aggregate Results In An Array When Necessary

Comments are closed, but trackbacks and pingbacks are open.