Example #1
0
        public T Dequeue(TimeSpan timeout)
        {
            T t;

            if (!this.Dequeue(timeout, out t))
            {
                throw Fx.Exception.AsInformation(new TimeoutException(SRCore.TimeoutInputQueueDequeue(timeout)), null);
            }
            return(t);
        }
Example #2
0
        public T Dequeue(TimeSpan timeout)
        {
            T value;

            if (!this.Dequeue(timeout, out value))
            {
                throw Fx.Exception.AsError(new TimeoutException(SRCore.TimeoutInputQueueDequeue(timeout)));
            }

            return(value);
        }