<can I know how many messages are waiting for acto...
# stackoverflow
u
can I know how many messages are waiting for actor to process I am using actor from Kotlin coroutines like this: actor(CommonPool, 0, parent = job) { consumeEach { action -> when (action) { is Spin -> spin(action.id) is Done -> action.ack.complete(true) } } } For debugging purposes, I would like to know how many messages are waiting on the channel for processing. How is it possible?