public void ReportStatus() { while (_book.GetPagesLeftToRead() > 0) { Console.WriteLine($"There are {_book.GetPagesLeftToRead()} pages left to read of the {InterleavedWrites.TotalPages} pages."); Thread.Sleep(200); } }
public void Read() { while (_book.GetPagesLeftToRead() > 0) { _book.ReadPage(); _readPages += 1; Thread.Sleep(20); } Console.WriteLine($"Finished reading, {_readerName} has read {_readPages} pages!"); }