python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
C#. CancellationToken. How do I test them
C#, Visual Studio.
Pardon me asking, I'm painfully new at TPL but comfortable in using BackgroundWorker in previous applications.
My app is a windows service app with a worker thread that loops. Each ...
Czeshirecat
Votes: 0
Answers: 0
Are CancellationToken's bleeding memory
I have a larger system that sometimes needs to be shut down. To accomplish this, all my Dispatcher.Invoke() methods are invoked with one and the same CancellationToken. When the system needs to be s...
Marcin
Votes: 0
Answers: 0
How to cancel a ReadLineAsync of StreamReader when reading from a Http stream?
I am doing a POST request to an uri, which returns me a stream of JSON data. This is done in a separate thread that is created at program start. If it matters, this is part of a Unity project. My code...
EwanMe
Votes: 0
Answers: 1
Should I check a CancellationToken before calling EF or allow EF to check it itself?
I am adding CancellationTokens into my .NET Core + EF application.
Should I check for cancellation before calling EF, or should I pass the cancellation token to EF and trust that EF will check it itse...
Frammo
Votes: 0
Answers: 0