kat2068
✅ Event-like event for ReadKey
running thru the program fast enough caused it to sometimes attempt to run a task that wasnt there inside of the forEach loop (so if the there were 2 tasks in the list, it would run through those, but the do (while) loop would attempt to run thru 1 because I was clearing after all the tasks are done, and then the list would be cleared, and that unneccesary do(while) is trying to run on an empty list
24 replies
✅ Event-like event for ReadKey
im considering to restructure my program, so that anything i want to happen ends up in a queue, then the entire program in a do while loop (exiting the loop exits the program). then if theres just waiting for the input, the program will just loop over nothing repeatedly, still waiting for the ReadKey from the async Taskim considering to re-write it like this
24 replies