You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AsapScheduler can interrupt random intervals #7593
The AsapScheduler should be protected in order not to affect unrelated code.
The AsyncScheduler could be protected as well by using the type-system to ensure that only ids generated by setInterval are passed to clearInterval
Reproduction code
import{asapScheduler,timer}from'rxjs';letn=0;consta=setInterval(()=>console.log(n++),200);console.log(`interval id: ${a}`);setTimeout(()=>{timer(0,10000,asapScheduler).subscribe(()=>console.log("I did not eat the other interval"));},1);setTimeout(()=>{timer(0,10000,asapScheduler).subscribe(()=>console.log("I did not eat the other interval"));},2);setTimeout(()=>{timer(0,10000,asapScheduler).subscribe(()=>console.log("I ate the other interval"));},3);
Activity
garrisig commentedon Feb 15, 2026
Probably related/same bug: #7205