mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-27 06:38:44 +02:00
Add Count method to stream
This commit is contained in:
@ -75,3 +75,8 @@ func (s *Stream) Unregister(output chan []byte) {
|
||||
close(output)
|
||||
}
|
||||
}
|
||||
|
||||
// Count number of outputs
|
||||
func (s *Stream) Count() int {
|
||||
return len(s.outputs)
|
||||
}
|
||||
|
Reference in New Issue
Block a user