processUpdate() {
        const {number} = this.props;
        Promise.all([
            getList('PDF'),
            getName()
        ]).then(([list, name]) => {
            this.setState({list, name});
        }).catch((error) => {
            ErrorService.setPageError('Eeerr');
            throw error;
        });
    }
getList('PDF') api call returns an empty array for 2-3 minutes. After some time list gets ready on the server then server returns an array. I need to loop  getList('PDF') call in every 10 seconds till the response is not empty.
I would like to do it in Promise.all, is that possible? Thanks
 
     
    