Esempio n. 1
0
File: IO.cs Progetto: sq/Libraries
        public Future <string> ReadLine()
        {
            if (EndOfStream)
            {
                string r = _ExtraLine ? "" : null;
                _ExtraLine = false;
                return(new Future <string>(r));
            }

            var thunk = new ReadLineThunk {
                Parent = this,
            };

            return(thunk.Run());
        }
Esempio n. 2
0
File: IO.cs Progetto: sq/Fracture
        public Future<string> ReadLine()
        {
            if (EndOfStream) {
                string r = _ExtraLine ? "" : null;
                _ExtraLine = false;
                return new Future<string>(r);
            }

            var thunk = new ReadLineThunk {
                Parent = this,
            };

            return thunk.Run();
        }