fire-and-forget Questions

4

Solved

In general especially when it comes to libraries or console apps, in order to fire and forget an async method, is it better to just call the async method without awaiting it or use Task.Run? Basica...
Olmstead asked 20/3, 2020 at 16:55

4

Solved

I have written an API that makes DB calls and does some business logic. I am invoking a goroutine that must perform some operation in the background. Since the API call should not wait for this bac...
Spadework asked 13/7, 2021 at 9:15

1

I have a long-running synchronous Python program, where I'd like to run ~10 "fire and forget" tasks every second. These tasks hit a remote API and do not need to return any value. I tried...
Fifteenth asked 27/7, 2020 at 3:52

2

Solved

Waiting for a non-essential metrics to be sent makes no sense to me, as it adds latency (waiting for the server's response) on each call to the back-end dotnet core service, which might happe...
Discourage asked 15/5, 2020 at 13:26

2

Solved

I'm trying to create a fire and forget method in PHP so that I can POST data to a web server and not have wait for a response. I read that this could be achieved by using CURL like in the following...
Rostock asked 29/1, 2013 at 16:29

4

I really like this question: Simplest way to do a fire and forget method in C#? I just want to know that now that we have Parallel extensions in C# 4.0 is there a better cleaner way to do Fire &a...
Avaria asked 10/4, 2011 at 18:49

4

Solved

I'm working on a Web API project which uses Azure's managed cache service to cache database results in memory to improve response times and alleviate duplicate traffic to the database. When attempt...
Lacrimatory asked 17/11, 2014 at 17:28

2

Solved

Using Autofac in ASP.NET along with the ContainerDisposalModule, how can i support fire and forget calls that have component dependencies that need to be resolved? The problem I'm running into is t...
Infelicity asked 10/8, 2012 at 23:28

3

Solved

I have an async method: public async Task DoSomethingAsync(){ ... await ... await ... .... return await SaveAsync(); } In most time, I call this method by: await DoSomethingAsync() This ...
Avion asked 26/3, 2014 at 15:20

2

Solved

How to go about implementing a "fire and forget" behavior with java.util.concurrency? I tried: ExecutorService executor = Executors.newSingleThreadExecutor(); public void push(Callable<Boolean...
Subjacent asked 5/9, 2013 at 18:31

2

Solved

The below text is an effort to expand and add color to this question: How do I prevent a misbehaving client from taking down the entire service? I have essentially this scenario: a WCF service is...
Antilogy asked 11/7, 2011 at 15:43

2

Solved

I'm doing a queued jobs and at the end of each job I want to fire an SP which will do a lot of processing on data. So I don't want to wait for completion of the SP and I just want to move to next j...

4

Solved

Can somebody please tell me how to fire-and-forget a process in Perl? I've already looked at ruby: how to fire and forget a subprocess? for doing the same in Ruby.
Football asked 25/1, 2010 at 16:49
1

© 2022 - 2025 — McMap. All rights reserved.