✅ how to stop the task in this case?
I have following method:
I wanna stop chuckCallback and
return dataSet;
if dataSet.Count == 5000
how can I do it?3 Replies
Isnt this a perfect use case for a CancellationToken?
If(dataSet.Count == 5000) return dataSet; 🤔
In first line of the delegate
it will not work
ah lol
it works, I'm stupid asf
I already tried this and it didn't work so I decided it is wrong answer
thanks