当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript BehaviorSubject.complete方法代码示例

本文整理汇总了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();
 }
开发者ID:canalplus,项目名称:rx-player,代码行数:11,代码来源:representation_chooser.ts

示例2: complete

 complete(): void {
     this._subject.complete();
 }
开发者ID:saneyuki,项目名称:linkplaces,代码行数:3,代码来源:SidebarRepository.ts

示例3:

 const mockOnShutdown = jest.fn(() => {
   onShutdown.next('completed');
   onShutdown.complete();
 });
开发者ID:rashidkpc,项目名称:kibana,代码行数:4,代码来源:index.test.ts

示例4: stop

 function stop() {
   stop$.next();
   loadingCount$.complete();
 }
开发者ID:elastic,项目名称:kibana,代码行数:4,代码来源:http_setup.ts

示例5: delete

  delete() {
    this.action = -1;

    this._subject.complete();
  }
开发者ID:ianchi,项目名称:luci-ng,代码行数:5,代码来源:option.ts

示例6: unsubscribe

  unsubscribe() {
    this._subject.complete();

    this._subscription.unsubscribe();
    this._subscription = null;
  }
开发者ID:ianchi,项目名称:luci-ng,代码行数:6,代码来源:dependency.ts

示例7: complete

 complete() {
     this.state$.complete();
 }
开发者ID:whyour,项目名称:ngx-tethys,代码行数:3,代码来源:store.ts

示例8: stop

 stop() {
     this._ticker.complete();
     clearInterval(this._interval);
 }
开发者ID:rzulfekar,项目名称:projects,代码行数:4,代码来源:clock.ts


注:本文中的rxjs.BehaviorSubject.complete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。