C#C
C#2y ago
Len

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?
Was this page helpful?