Akka.Actor.Internal.AbstractStash.ClearStash C# (CSharp) 메소드

ClearStash() 공개 메소드

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

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