Open
Description
// Len returns len of In plus len of Out plus len of buffer.
// It is not accurate and only for your evaluating approximate number of elements in this chan,
func (c *UnboundedChan[T]) Len() int {
return len(c.In) + c.BufLen() + len(c.Out)
}
And if i wanna check whether this chan is empty or not, how should i do ?
Metadata
Metadata
Assignees
Labels
No labels