queueLengthInChannel method

int queueLengthInChannel(
  1. int channel
)

The current length of the queue in the given channel.

This is the number of commands that are waiting to be sent to the bridge for the given channel.

This is used to see if the queue is getting backed up. If so, you can call flushStreamQueue, replaceStreamQueue, or replaceStreamQueueChannel to help deal with the backup.

Implementation

int queueLengthInChannel(int channel) =>
    _entertainmentStream.queueLengthInChannel(channel);