Example #1
0
        public void Delay(Action action)
        {
            action.AssertNotNull();
            IsDelayed = true;

            _delayedWrites.Enqueue(action);
            var buf = _buf = new StringBuilder();
            _eagerWrites.Enqueue(() => this.Write(buf.ToString()));
        }