observeOn
Reemite todas las notificaciones del Observable fuente con el planificador especificado
Descripción
Ejemplos
import { interval, animationFrameScheduler } from "rxjs";
import { observeOn, tap } from "rxjs/operators";
const rxjs = document.getElementById("rxjs");
const interval$ = interval(0);
interval$
.pipe(
tap((val) => (rxjs.style.transform = `rotate(${val}deg)`)),
observeOn(animationFrameScheduler)
)
.subscribe();Ejemplo de la documentación oficial
Recursos adicionales
Last updated