mention using bluebird in the docs and changelog

This commit is contained in:
spalger
2015-11-24 15:32:39 -06:00
parent da50dd5ce6
commit ddd9aaa6f8
3 changed files with 19 additions and 9 deletions

View File

@ -218,13 +218,18 @@ Options:::
`defer`[[config-defer]]:: `Function` -- Override the way that the client creates promises. If you would rather use any other promise library this is how you'd do that. Elasticsearch.js expects that the defer object has a `promise` property (which will be returned to promise consumers), as well as `resolve` and `reject` methods.
Default:::
Default::: Defer object created with ES6 Promise
To use Bluebird:::
+
[source,js]
-----
function () {
return when.defer();
}
var Bluebird = require('bluebird');
var client = new elasticsearch.Client({
defer: function () {
return Bluebird.defer();
}
});
-----