()
| 1957 | } |
| 1958 | |
| 1959 | slide(): void { |
| 1960 | if (this.isFull()) { |
| 1961 | const value = this.value |
| 1962 | this.subscribers = 0 |
| 1963 | this.value = AbsentValue as unknown as A |
| 1964 | this.replayBuffer?.slide(value, this.replayIndex) |
| 1965 | } |
| 1966 | } |
| 1967 | |
| 1968 | subscribe(): PubSub.BackingSubscription<A> { |
| 1969 | this.subscriberCount += 1 |