mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 15:02: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)
|
close(output)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Count number of outputs
|
||||||
|
func (s *Stream) Count() int {
|
||||||
|
return len(s.outputs)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user