title: debounceTime to a service call
body: <p>I'm trying to send this request using debounceTime method, to not send multiple times to server. but is not working. This service is being called instantly.</p>
  
  <p>On drag'n'drop drop event I want to save positions with <code>saveWidgetsPosition</code> func.</p>
  
  <pre><code>  drop(event: CdkDragDrop&lt;string[]&gt;) {
      if (event.previousContainer !== event.container) {
        transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);
      } else {
        moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
      }
  
      this.saveWidgetsPosition(this.columns);
    }
  </code></pre>
  
  <p>Function to save positions</p>
  
  <pre><code>saveWidgetsPosition(columns: any[]) {
      const columnsLabels = columns.map(x =&gt; x.map(y =&gt; y.label));
  
      this.userService.saveWidgetsPosition({ user: this.user, columns: columnsLabels})
          .pipe(debounceTime(5000))
          .subscribe(res =&gt; console.log(res));
  }
  </code></pre>