Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
75 views

Hello I have three queries which I fetched from repository and in application layer I convert the query to List. Below is my code: private async Task<Tuple<List<GetCustomerDto>, List<...
shirin monzavi's user avatar
0 votes
0 answers
58 views

I am storing object in memory via Distributed Memory Cache and access it from different background services and controllers. There are two services that reading the object from memory by its key id ...
M.S.'s user avatar
  • 21
-1 votes
1 answer
109 views

What I meant was If there are 100 files, 100 threads will be created to read the file and process the contents of the file, When there are 100 files, one thread is turned every second, and no threads ...
이정훈's user avatar
0 votes
2 answers
814 views

I want to suppress exception triggered in the task. As I recall, some time ago I used this code to make it possible: void Main(..) { Task Fail() { throw new Exception("ex"); ...
Unnamed's user avatar
  • 292
1 vote
0 answers
687 views

Note: this is a horrible design pattern, and ephemeral FreeRTOS tasks should not be created. I acknowledge this in my attempt at writing a FreeRTOS best practices guide, bullet #17 here: [SAFETY-...
Gabriel Staples's user avatar
-1 votes
2 answers
150 views

I'm writing a script for extending one of my datasets of email data with some features that I have to compute by calling external APIs. I have to use C#, which is not a language I'm very confident ...
TheGreek97's user avatar
1 vote
0 answers
173 views

my cpu and memory utilization hasn't atlest reched 50% and we didn't change any configuration from our side. My image and task definition is also not disturbed BUT MY TASK GOT STOPPED AND RESTARTED ...
vmax's user avatar
  • 41
0 votes
1 answer
1k views

This code is trying to get details of a Complex Type Value. I am using a task with await. However, I still get a warning that the await operator does not exist. I am not sure where I have gone wrong ...
SeekerOfKnowledge's user avatar
0 votes
0 answers
345 views

My current program setup consists of a run.py file with the following contents: from cocapi.task import my_add from cocapi import app print(app.tasks.keys()) res = my_add.delay(1, 2) print(res.get())...
finlay morrison's user avatar
0 votes
0 answers
540 views

I have asp.net web api with controller's methods witch not implement cancellation token, for example: [HttpGet(nameof(Get))] public async Task<UserDto> Get([FromQuery] Guid userId) => await ...
Vladimir's user avatar
0 votes
1 answer
115 views

In an actual app project, when running the following code, the print statements occur in the order of 1->3->2: var body: some View { Text .onAppear { print("1") ...
naljin's user avatar
  • 645
0 votes
1 answer
164 views

Im using ECS FARGATE, ALB, Target Group with instyance ip. when ever my service creates a task it is getting the following error and task is getting failed. New task is being created after this issue ...
vmax's user avatar
  • 41
-1 votes
1 answer
822 views

I know that what am about to show is wrong, but I want to know what exactly is going on. I can not attach images because of my low reputation. I have .NET 7 API project. I use Task.Delay() in sync ...
gnedevski's user avatar
0 votes
0 answers
56 views

I am stuck trying to make a solution for a task my tutor asked me to do using wxMaxima. Here's the task: "On June 1, you take a mortgage that is repaid in fixed monthly instalments for 10 years ...
Pius Leofsige's user avatar
1 vote
1 answer
484 views

I have set Strict Concurrency Checking to Complete, and the following code compiles without warnings in Xcode 15.0.1 and Xcode 15.1 beta 3. When running it, it shows a concurrency problem. The inc() ...
Sebastian Kirsche's user avatar
2 votes
1 answer
107 views

I am working on a concurrent programming problem in Ada. The task is to simulate a bridge over which different cars can pass from different directions. The complication lies in the fact that, if an ...
Alejandro Moreno's user avatar
0 votes
0 answers
89 views

I have the below function which does a set of tasks: private async Task DoworkAsync(List<OrderFragment> of) { var sw = Stopwatch.StartNew(); var task = CreateOrderjson(of); await ...
Joe's user avatar
  • 19
0 votes
1 answer
225 views

I'm looking to build a routine that is responsible for executing any action via procedure (Tproc) using Tasks, while displaying a loading screen, without freezing the system's main form. An extra ...
Rafael's user avatar
  • 23
2 votes
1 answer
787 views

Lets say I have a startable class that have StartAsync and StopAsync. When StopAsync is called the method wait until all necessary tasks are finished and handled properly. (Writing some things to db ...
Jerrod Wynne's user avatar
0 votes
1 answer
128 views

I have some async methods I want to try a set number of times until they return true or the max attempts have been reached, with a delay in between. I've been able to get the outcome I desire, but ...
Samhain323's user avatar
0 votes
1 answer
101 views

I need help with this code, so if anyone is willing to help I would be grateful. I'm working on developing a simple thread pool, which is passed an array of numbers, and the threads compute the ...
SP222's user avatar
  • 21
-2 votes
1 answer
477 views

I might be overthinking this, but I'm not sure I understand how locking works when dealing with await/async. Given the following, after each await a different thread can return to execute the next bit ...
creativergk's user avatar
1 vote
0 answers
292 views

I recently found out about AbortController and its sibling AbortSignal to register event listeners until I don't want it anymore. When I look at the documentation, it looks surprisingly similar to ....
Luke Vo's user avatar
  • 21.6k
2 votes
2 answers
415 views

While running the following C# program, I randomly got two different results. Result 1 (occurred frequently) is actually deadlocked. Please explain to me why this happened. I am not expecting the ...
Sky Nano's user avatar
1 vote
1 answer
148 views

I am new to Tasks and its associated keywords in C#. My goal is to setup a background thread/task that will continuously poll a server every n seconds. Using the .NET TPL library, is the following ...
Lanet Rino's user avatar

1
3 4
5
6 7
174