4 examples of 'axios all' in JavaScript

Every line of 'axios all' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
98exports.all = function all(callback)
99{
100 etcd.get('/', { recursive: true }, (err, reply) =>
101 {
102 if (err) return callback(err);
103 callback(null, toObject(reply.node));
104 });
105};
62Bluebird.prototype.all = function all() {
63 return this.then(r => Bluebird.all(r));
64};
169Promise.all = function all(promiseList)
170{
171 var ret = new Promise(function (res, rej)
172 {
173 this.__rejector = rej;
174 this.__resolver = res;
175 this.__promiseList = promiseList;
176 this.__done = false;
177 this.__count = 0;
178 });
179
180 for (var i in promiseList)
181 {
182 promiseList[i].then(function ()
183 {
184 // Success
185 if(++ret.__count == ret.__promiseList.length)
186 {
187 ret.__done = true;
188 ret.__resolver(ret.__promiseList);
189 }
190 }, function (arg)
191 {
192 // Failure
193 if(!ret.__done)
194 {
195 ret.__done = true;
196 ret.__rejector(arg);
197 }
198 });
199 }
200 if (promiseList.length == 0)
201 {
202 ret.__resolver(promiseList);
203 }
204 return (ret);
205};
109all() { return new Promise.resolve(true); }

Related snippets