messageQueueLength method

int messageQueueLength(
  1. bool inExecutingContext
)

Returns the length of the message queue.

Implementation

int messageQueueLength(bool inExecutingContext) {
  QueueList<dynamic> messageQueue;

  if (inExecutingContext) {
    messageQueue = _messageQueueExecutingContext;
  } else {
    messageQueue = _messageQueue;
  }

  return messageQueue.length;
}