title: Angular 6. Execute http post without waiting for return
body: <p>I am trying to execute a long running http-post triggered Azure function from Angular 6. I would to kick off the function but I am not interested in waiting for the function completion on the Angular side. How could I achieve "fire-and-forget" using Angular's http module?</p>
  
  <p>Here is my current code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>public generateDemoData$(request: GenerateDemoDataRequestModel): Observable&lt;boolean&gt;{
      let functionUrl = this.getFunctionUrl("GenerateDemoData");
      return this.http.post&lt;ServiceResponseModel&lt;boolean&gt;&gt;(functionUrl, request)
      .pipe(        
        map((x: ServiceResponseModel&lt;boolean&gt;) =&gt; x.Data),
      );
    }</code></pre>
  </div>
  </div>
  </p>