8,650 questions
0
votes
0
answers
28
views
ConfigureAwait(false) causing slow downs
This is a .NET 9 WPF project and as far as I know when awaiting Tasks ConfigureAwait(false) extension should be used here.
The Voltage property binds to a sliders Value.
FireAndForgetSafeAsync also ...
0
votes
0
answers
82
views
.NET - What happens to tasks that don't complete before the method finishes? [duplicate]
Apologies if this isn't asked well--this basically my first time posting, but I'm a long time lurker.
I'm troubleshooting some .NET6 code that is looping through a list of a few thousand items, and ...
0
votes
0
answers
13
views
How do I run multiple BackgroundWorkers that use the same code at the same time in Visual Basic
I want to monitor several folders at the same time and when files arrive process them synchronously. To get a handle on the structure I'm starting by just trying to report the number of files in each ...
0
votes
1
answer
57
views
Wait inside long running background task loop for condition/event to continue iterating?
Consider this toy example:
public class SomeClass
{
private readonly ConcurrentQueue<int> _sharedData = [];
private Task? _backgroundTask;
private async Task Start()
{
...
1
vote
1
answer
67
views
Does ExecutionContext always flow into a Task.Run or a Parallel.ForEach?
In an ASP.NET app, I'm doing a fair amount of stuff with Task.Run and Parallel.ForEach. At some points, I can get 2-3 levels deep:
// This is in a controller somewhere (i.e. so the Request object is ...
0
votes
1
answer
57
views
How can I "lock" the value of a static property inside a Task to what it was when a Task starts?
I would like to start a long-running Task which will use the value of a static property on a static class. I would like it to "capture" the value when it starts the task, and continue to use ...
0
votes
1
answer
35
views
Any difference between await asyncio.Task and asyncio.Task.result()?
After the task already completed, is there any difference between await asyncio.Task and asyncio.Task.result()?
The only difference in the following code is how I read the value in task.
import ...
0
votes
0
answers
5
views
Story points for ADO Tasks
I am looking to use story points to estimate effort for managing tasks in ADO, what is the best practice when using story points for Tasks in ADO?
2
votes
2
answers
92
views
Task.ContinueWith() results in error intermittently
I would like to call an async method for all the routes in the TierRoutes IEnumerable.
The method returns a list of objects. When the Task is completed for the async call, I would like to update a ...
-2
votes
1
answer
58
views
Unable to capture exception in task
I have a method responsible for enabling and disabling various options of a program based on access to certain databases. The system checks the connections to each one separately and makes the ...
2
votes
2
answers
102
views
Controller Stage Freezing Display Stage
I have a project that uses a controller stage to manipulate and color a display stage (which has an ImageView with a WritableImage). The problem I have been running into is that the display stage will ...
0
votes
2
answers
109
views
What's the best way to Run a Task that is returned by a Method?
Trying to run a Task returned by a Method and get the Result,
How do you run the returned Task and get the result?
using System;
using System.Threading.Tasks;
public class Program
...
0
votes
0
answers
70
views
Tasks concurrent management in .NET
I need to manage of many started Task by using collection for temporary task storage. I would not want to get a situation with "infinitely" growing tasks collection, where most of the tasks ...
1
vote
1
answer
33
views
Updating task scheduler entries to modify task arguments
I am attempting to iterate over many task scheduler entries to modify the task arguments. We have many servers running simultaneously launched scripts, all need to be reachable on the console if a ...
0
votes
0
answers
13
views
VS Code Codespace wont run task
Im currently using VS Code Codespace through Cengage for my SQL class. Ive been using it all semester and its wokred fine. It lets me run the code on VS code but when i git the check task button to ...