mirror of
https://github.com/coder/coder.git
synced 2026-09-22 21:22:17 +08:00
Implements the chatd stabilization RFC. Combines: - https://github.com/coder/coder/pull/25908 - https://github.com/coder/coder/pull/25923 - https://github.com/coder/coder/pull/26109 - https://github.com/coder/coder/pull/26110 - https://github.com/coder/coder/pull/26111 - https://github.com/coder/coder/pull/26112
10 lines
254 B
Go
10 lines
254 B
Go
package messagepartbuffer
|
|
|
|
// EpisodeCount returns the number of tracked episodes so tests can assert
|
|
// that episode state is reclaimed and does not leak.
|
|
func (b *Buffer) EpisodeCount() int {
|
|
b.mu.Lock()
|
|
defer b.mu.Unlock()
|
|
return len(b.episodes)
|
|
}
|