is there a way to get the number of items in a cha...
# coroutines
c
is there a way to get the number of items in a channel (like queue.size) ?
d
Not really, some of the underlying data structures make that difficult I think. May I ask what you're trying to achieve?
c
i use a channel as a replacement for a queue and i want to monitor the queue size as a performance metric
d
Ah, you'll have to track that yourself with an atomic int.