* Ensure subscription loop is running, starting it if needed.
()
| 705 | * Ensure subscription loop is running, starting it if needed. |
| 706 | */ |
| 707 | private ensureSubscription(): void { |
| 708 | if (!this.isSubscribed) { |
| 709 | this.subscribe() |
| 710 | return |
| 711 | } |
| 712 | if ( |
| 713 | !this.subscriptionAbortController || |
| 714 | this.subscriptionAbortController.signal.aborted |
| 715 | ) { |
| 716 | this.subscribe({ restart: true }) |
| 717 | } |
| 718 | } |
| 719 | |
| 720 | /** |
| 721 | * Create a promise that resolves when onStreamEnd fires. |
no test coverage detected