// See the "Take it slow" appendix getHeroesSlowly() { return new Promise<Hero[]>(resolve => setTimeout(()=>resolve(HEROES), 2000) // 2 seconds ); }