kuu A
0
Q:

rxjs .subscribe

      
        content_copy
      
      
        open_in_new
      
      import { interval } from 'rxjs';

const observable = interval(1000);
const subscription = observable.subscribe(x => console.log(x));
// Later:
// This cancels the ongoing Observable execution which
// was started by calling subscribe with an Observer.
subscription.unsubscribe();
    
0

New to Communities?

Join the community