Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const http: Promise<AxiosResponse>
- function timer() {
- return new Promise(resolve => setTimeout(resolve, 2000));
- }
- await timer();
- function timer() {
- return new Promise(resolve => setTimeout(resolve, 2000));
- }
- projects.forEach(async project => {
- await timer();
- const result = this.httpService.get(`${url}`, {auth}).toPromise();
- const projectProfile = await result.then(res => res.data);
Add Comment
Please, Sign In to add comment