本文整理汇总了TypeScript中rxjs.BehaviorSubject.complete方法的典型用法代码示例。如果您正苦于以下问题:TypeScript BehaviorSubject.complete方法的具体用法?TypeScript BehaviorSubject.complete怎么用?TypeScript BehaviorSubject.complete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rxjs.BehaviorSubject
的用法示例。
在下文中一共展示了BehaviorSubject.complete方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: dispose
/**
* Free up the resources used by the RepresentationChooser.
*/
public dispose() : void {
this._dispose$.next();
this._dispose$.complete();
this._reEstimate$.next();
this._reEstimate$.complete();
this.manualBitrate$.complete();
this.maxAutoBitrate$.complete();
}
示例2: complete
complete(): void {
this._subject.complete();
}
示例3:
const mockOnShutdown = jest.fn(() => {
onShutdown.next('completed');
onShutdown.complete();
});
示例4: stop
function stop() {
stop$.next();
loadingCount$.complete();
}
示例5: delete
delete() {
this.action = -1;
this._subject.complete();
}
示例6: unsubscribe
unsubscribe() {
this._subject.complete();
this._subscription.unsubscribe();
this._subscription = null;
}
示例7: complete
complete() {
this.state$.complete();
}
示例8: stop
stop() {
this._ticker.complete();
clearInterval(this._interval);
}