Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
163 views

I have a code that creates qr-code in MainThread after user's typing. To prevent generation after each small change I tried to create kind of timer with Task.Delay and CancellationToken that could be ...
Cobret's user avatar
  • 64
1 vote
1 answer
81 views

I have a Task that should continuously read from a Tcp stream and place the data into a ConcurrentQueue for processing. Stepping through the function I notice that the ReadAsync Call does not return. ...
gwiz_kid's user avatar
  • 143
1 vote
4 answers
187 views

I’m building an ASP.NET Core Web API hosted on Kestrel. Incoming HTTP requests are dispatched to the ThreadPool, which picks an available thread to execute my controller action. Inside that action, I ...
Mohammad's user avatar
2 votes
1 answer
220 views

I got curious about what would happen if you await a TaskCompletionSource from two threads. using System.Diagnostics; var t = Start(); var t1 = Task.Run(async () => { await t; Thread.Sleep(...
Hello World's user avatar
2 votes
0 answers
60 views

I'm writing a physics game, and I'm trying to speed up my motion calculations. Every tick of the update cycle, I call an rk4 routine which calls an ODE function 4 times, passing updated values for dt/...
Kate Goss's user avatar
2 votes
1 answer
251 views

Task { @MainActor // ERROR: Unknown attribute 'MainActor' handleSuccess(of: response) } I thought you can use actors on Tasks. Not sure what I'm doing wrong.
mfaani's user avatar
  • 37k
2 votes
1 answer
293 views

How can I leverage virtual threads to execute I/O-bound Quartz jobs within a Quarkus microservice, handling programmatic job triggering without cron-based scheduling? We are considering Quartz for our ...
LAP's user avatar
  • 101
0 votes
0 answers
38 views

When I press on a map pin, the detail view on a different View Controller for the selected restuarant’s pin is not shown. I think this is occurring because of the Task block I'm using. Its an iOS ...
cg1000's user avatar
  • 27
-3 votes
2 answers
158 views

I am trying to create my own OutOfMemoryException protection. It seems that ManualResetEventSlim.Wait() blocks both tasks. As soon as ManualResetEventSlim.Wait() is reached, the application stops ...
Stanko Milosev's user avatar
1 vote
0 answers
85 views

For a professional need, I used RabbitMQ to streamline tasks. The frameworks and libraries used are: RabbitMQ.Client 7.1.2 .NET 8.0 My task is basic: copy files from one location to another. So I ...
billybeo nguyen's user avatar
0 votes
1 answer
49 views

I need to run few ContentDialog one by one. I use this code below to run dialogs: await App.GetService<IFirstRunDisplayService>().ShowIfAppropriateAsync(App.AppXamlRoot); await ...
bondarukid's user avatar
0 votes
2 answers
81 views

I'm trying to cancel a task if it runs longer than the specified time, but the cancelafter/cancel methods don't cancel the task. I've looked at solutions to similar problems, but I haven't found an ...
taubomn's user avatar
  • 51
0 votes
1 answer
101 views

I'm writing a console application that needs to copy console input one keypress at a time to a socket (while also doing other things). In order to do that, I figure I have a couple options. In the ...
Mark's user avatar
  • 11.8k
0 votes
2 answers
140 views

From within my ASP.NET application (.NET Framework 4.8) I invoke an external process via Anonymous Pipes. Theoretically, it could happen that the external process hangs (for whatever reason) when my ...
Jan Köhler's user avatar
  • 6,120
0 votes
2 answers
67 views

Why is allRecords returning with zero records when the database has records? public record struct ImposterDbContextAuthorization(int AccountUserId, bool HasPermissionCanAccessAnyAccount, bool ...
Jason's user avatar
  • 11
3 votes
2 answers
143 views

Given one IAsyncEnumerable<>, in general it works fine (even if it can be nonoptimal performance-wise) to call GetAsyncEnumerator more than once, getting a new IAsyncEnumerator<> each time....
Jeppe Stig Nielsen's user avatar
0 votes
0 answers
45 views

I'm trying to create a library wrapper for the MediaPipeTasksVision.framework in xcode, the wrapper is for a programming language called B4X which is a cross platform programming language and it's ...
user1705074's user avatar
0 votes
1 answer
57 views

I have two tasks. T05:30 - I wish for this to run at 05:30 every day. T08:30 - I wish for this to run at 08:30 every day, but only if T05:30 has succeeded today. Can this be achieved in Airflow? It ...
J. Mini's user avatar
  • 1,746
0 votes
1 answer
122 views

I am looking for feedback and insights on my way to a well-written C# class. Let´s assume a Temperature Sensor which can be read via HTTP request. I want to create a class where each instance updates ...
Martin D.'s user avatar
-1 votes
2 answers
105 views

Method readAllFilesAtRootFolder: public static Dictionary<string, List<mediaFile>> readAllFilesAtRootFolder( string rootFolder, string[] extensions, bool subFolders, ...
PCG's user avatar
  • 2,311
0 votes
0 answers
68 views

I am a beginner in the use of task in C#. I have implemented a file generation window in my application which generates 3 different files. I have implemented the file generation function on a single ...
user25557558's user avatar
1 vote
0 answers
270 views

I'm using Visual Studio Code (VSCode) to work on a C++ project and I want to automate the process of compiling my C++ code and running it with input redirected from a file (input.txt) and the output ...
Gujrathi Siddhant's user avatar
0 votes
0 answers
50 views

I'm trying to create a c# windows form that has a simple task which is to display two separate browsers each one has its own server proxy, but no matter what I do I get this error: "System....
ali-1997's user avatar
0 votes
0 answers
85 views

I have the following method that loads the data to DataGridView in a separate function. When I call the method in a button click, first two methods runs without hanging the windows since they dod not ...
PCG's user avatar
  • 2,311
2 votes
2 answers
68 views

I have created a scheduled script to process invoice items. I process the items from a saved search in batches (from start: 0 to end: 50 items) and then reschedule the script. After processing (...
Maira S's user avatar
  • 121

1
2 3 4 5
174