-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
RxJS version: 5.0.2
Code to reproduce:
Observing a subject using the queue scheduler creates many QueueActions that are never freed.
Plnkr demonstrating issue: https://plnkr.co/edit/BBkHlpIf6MiP2eOPdIlz
Minimal code to reproduce:
import 'rxjs/add/operator/observeOn';
import { interval } from 'rxjs/observable/interval';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { queue } from 'rxjs/scheduler/queue';
const source$ = new BehaviorSubject(0);
source$.observeOn(queue).subscribe();
interval(50).subscribe(source$);Create two heap allocation snapshots about 20 seconds apart and use the comparison tools to see the allocation delta. Example:
Expected behavior:
No memory leak of previous values.
Actual behavior:
Previous values are retained in QueueActions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
