Akka.Dispatch.MessageQueues.DequeWrapperMessageQueue.TryDequeue C# (CSharp) Метод

TryDequeue() публичный Метод

Attempt to dequeue a message from the front of the prepend buffer. If the prepend buffer is empty, dequeue a message from the normal IMessageQueue wrapped but this wrapper.
public TryDequeue ( Envelope &envelope ) : bool
envelope Akka.Actor.Envelope The message to return, if any
Результат bool
        public bool TryDequeue(out Envelope envelope)
        {
            if (_prependBuffer.Count > 0)
            {
                envelope = _prependBuffer.Pop();
                return true;
            }

            return _messageQueue.TryDequeue(out envelope);
        }