示例#1
0
        public long ReadInputInt()
        {
            var wait = new SpinWait();

            ReadingInt?.Invoke(this, EventArgs.Empty);

            while (_inputBuffer.Count < 1)
            {
                wait.SpinOnce();
            }

            return(_inputBuffer.Dequeue());
        }
示例#2
0
 public long ReadInputInt()
 {
     ReadingInt?.Invoke(this, EventArgs.Empty);
     return(long.Parse(Console.ReadLine()));
 }