Given the following code: var arr = [1,2,3,4,5]; var results: number...
Preface: I’m looking for an explanation, not just a solution. I already know the solution. Despite having spent several days studying MSDN articles ...
-
May 11, 2022
- 0 Comments
I have been going over async/await and after going over several articles, I decided to test things myself. However, I can’t seem to ...
-
May 10, 2022
- 0 Comments
I thought that they were basically the same thing — writing programs that split tasks between processors (on machines that have 2+ processors). ...
-
May 9, 2022
- 0 Comments
I would like to ask you on your opinion about the correct architecture when to use Task.Run. I am experiencing laggy UI in ...
-
May 9, 2022
- 0 Comments
I have an async method which returns no data: public async Task MyAsyncMethod() { // do some stuff async, don't return any data ...
-
May 6, 2022
- 0 Comments
The await keyword in C# (.NET Async CTP) is not allowed from within a lock statement. From MSDN: An await expression cannot be ...
-
May 6, 2022
- 0 Comments
I was recently reading some code that uses a lot of async methods, but then sometimes needs to execute them synchronously. The code ...
-
May 5, 2022
- 0 Comments