coderplanets_web icon indicating copy to clipboard operation
coderplanets_web copied to clipboard

takeUtil not work in network TIMEOUT workflow

Open mydearxym opened this issue 6 years ago • 0 comments
trafficstars

when this.stop$ been called, the takeUtil operator not cancel the ajax request as expected.

see details in source file


    this.mutate$ = this.mutateInput$.pipe(
      debounce(() => timer(300)),
      switchMap(q =>
        mutatePromise(q).pipe(
          timeoutWith(TIMEOUT_THRESHOLD, TimoutObservable),
          takeUntil(this.stop$)
        )
      )
    )


mydearxym avatar Jan 20 '19 05:01 mydearxym