Example #1
0
        //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 _))
                {
                }
            }
        }
Example #2
0
        //** Instructions **//
        //The instuctions that make up the OppCodes

        //IO
        async Task <long> ReadIn()
        {
            return(await ReadFromInput.ReadAsync());
        }