CC#•Created by Len on 5/21/2024 in #help Async function
Hello guys,
what is the best way to stop a async function?
I made a async function, which monitors if a key is pressed. Should I use the cancel Token? And is Task<> with Return the only why to get something back from the function?