//Clear down the input/output queue if you want to start a program fresh. public async void ClearInputOutput() { //TODO: There's a read all thing you can use to grab an enum of everything while (await ReadFromInput.WaitToReadAsync()) { while (ReadFromInput.TryRead(out long _)) { } } while (await ReadFromOutput.WaitToReadAsync()) { while (ReadFromOutput.TryRead(out long _)) { } } }
//** Instructions **// //The instuctions that make up the OppCodes //IO async Task <long> ReadIn() { return(await ReadFromInput.ReadAsync()); }