© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
2y ago
•
8 replies
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
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ Multithreading an async function
C
C# / help
3y ago
✅ Async PushButton Functions
C
C# / help
3y ago
An async function called without await
C
C# / help
2y ago
❔ Async function seems to continue running after returning.
C
C# / help
4y ago