mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[courier/request] use angular promises in courier
This commit is contained in:
parent
faa7771e12
commit
3b4e3a687b
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
|||
import _ from 'lodash';
|
||||
import moment from 'moment';
|
||||
import { race } from 'bluebird';
|
||||
|
||||
import errors from 'ui/errors';
|
||||
|
||||
|
@ -140,7 +139,7 @@ export default function AbstractReqProvider(Private, Promise) {
|
|||
}
|
||||
|
||||
getCompleteOrAbortedPromise() {
|
||||
return race([ this.defer.promise, this.abortedDefer.promise ]);
|
||||
return Promise.race([ this.defer.promise, this.abortedDefer.promise ]);
|
||||
}
|
||||
|
||||
clone() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue