/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ import { Subject } from 'rxjs'; export class RxEventHelper { private _eventList: Subject[] = []; create() { const s = new Subject(); this._eventList.push(s); return s; } dispose() { for (const e of this._eventList) e.complete(); } }