kat2068
kat2068
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
ya basically resolved cuz im off c# for some while and the project is done
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
and update here if anything goes wrong
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
ill check it out
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
okay
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
(this will never reach anyone im just talking to myself)
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
Im talking to myself rn, but I would like feedback on how other people handle an event-based program
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ 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
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
looking at my picture helped me a bit
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
nvm i fixed it again lol
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
im not sure whats exactly happening, but I am currently using a do (while) loop, that will Task.Run tasks as they appear
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
UPDATE: I need a new method because there are flaws with a do while loop (or atleast the way im doing)
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
i solved it
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ 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 Task
im considering to re-write it like this
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
here is an example of what im currently doing
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
24 replies
CC#
Created by kat2068 on 3/11/2023 in #help
✅ Event-like event for ReadKey
no my main method hasnt returned anything yet
24 replies