EN VI
Posts (0)
Questions (6)
2024-03-12 18:00:15
You're currently waiting for GetDataFromApi1Async to complete before you call GetDataFromApi2Async. If you were to call both methods and then await the returned tasks, you'd see them run in parallel....
Tags: c# API async-await
2024-03-13 01:30:04
You can just return Task.CompletedTask. Furthermore, you can do something like this for all of the log methods: protected async Task LogToProfiler(Func messageProvider) { if(!profilerEnabled)...
Tags: c# async-await
2024-03-13 02:00:07
You can just return Task.CompletedTask. Furthermore, you can do something like this for all of the log methods: protected async Task LogToProfiler(Func messageProvider) { if(!profilerEnabled)...
Tags: c# async-await
2024-03-15 21:30:05
I can't figure out the best way to achieve this. There are so many options: I would argue that none of them is "the best". The common approach for such task is to use some kind of background process...
Tags: c# .net asynchronous
2024-03-15 23:00:15
I can't figure out the best way to achieve this. There are so many options: I would argue that none of them is "the best". The common approach for such task is to use some kind of background process...
Tags: c# .net asynchronous
2024-03-16 18:30:05
You can use a semaphore : readonly SemaphoreSlim userEnterSemaphore = new SemaphoreSlim(1, 1); public Form1() { InitializeComponent(); } private async Task DoUserFlow()...
Tags: c# async-await

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login