messageQueueLength method
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;
}