Akka.Actor.Internal.AbstractStash.ClearStash C# (CSharp) Method

ClearStash() public method

Eliminates the contents of the IStash, and returns the previous contents of the messages.
public ClearStash ( ) : IEnumerable
return IEnumerable
        public IEnumerable<Envelope> ClearStash()
        {
            if(_theStash.Count == 0)
                return Enumerable.Empty<Envelope>();

            var stashed = _theStash;
            _theStash = new LinkedList<Envelope>();
            return stashed;
        }