title: Typescript: return value after delay
body: <p>I have a get request which is an asynchornouns method. To <strong>fetch</strong> the data, i make a delay for 3 seconds, and after that, <strong>i  expect to return the result.</strong> Here is the code:</p>
  
  <pre><code>getWeatherForcastWithLocation(){
  
               this._http.get(uri)
                      .subscribe( res =&gt;this.setItems(res.json(),false));
              setTimeout(()=&gt;{ 
                       return this.weatherStatatistic; 
              },3000);        
  
      return null;
  }
  </code></pre>
  
  <p>I would like to return <code>this.weatherStatatistic</code>, however,  it always returns <code>null</code>. I know it's because of  <code>return null;</code>at the end of the method, but if i remove it the return type of method would be <code>void</code>.
  So <strong>how can i return</strong> <code>this.weatherStatistic</code>?</p>