MCPcopy Create free account
hub / github.com/Effect-TS/effect / slide

Method slide

packages/effect/src/PubSub.ts:1959–1966  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

isFullMethod · 0.95
slideMethod · 0.65

Tested by

no test coverage detected