mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 10:22:19 +00:00
Add Count method to stream
This commit is contained in:
parent
b8ee60ce9f
commit
5b85eed646
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user