rxjs que re-Beau Como Parametro non observable
const $button = document.getElementById('main-button');const click$ = fromEvent($button, 'click');const subscription = click$.subscribe({ next: (e) => console.log('Event :', e)});// Luego de 5 segundos se cancela la suscripción a click$setTimeout(() => { subscription.unsubscribe();}, 5000);
Silly Sandpiper