async-await
How would I run an async Task<T> method synchronously?
I am learning about async/await, and ran into a situation where I need to call an async method synchronously. How can I do that?[详细]
2023-02-13 04:25 分类:问答Is it possible to "await yield return DoSomethingAsync()"
Are regular iterator blocks (i.e. \"yield return\") incompatible with \"async\" and \"await\"? This gives a good idea of what I\'m trying to do:[详细]
2023-02-12 01:56 分类:问答How to create a wrapper for an async-await call?
From what I can tell, there is no built-in (or framework extension) support for ConnectAsync/AcceptAsync/SendAsync/R开发者_C百科eceiveAsync, etc.. How would I write my own wrapper that would be suppor[详细]
2023-02-11 03:45 分类:问答async/await cancellation mechanism
I have a question about what mechanism to cancel an ongoing async operation could be used, instead a cancellation token in the async/await context. I\'m sure this is a well studied design decision tha[详细]
2023-02-08 21:54 分类:问答c# async await implementation [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported b开发者_开发问答y facts, references,or expertise, but this question will likely so[详细]
2023-02-08 16:45 分类:问答task.Wait throwing an exception
Largely as a follow-up to this question test driven asynch tasks I have come up with some code that works if I don\'t have the task wait, but fails if I do.[详细]
2023-01-29 04:31 分类:问答What is `TaskEx.WhenAll` in the Async CTP?
I thought TaskE开发者_Python百科x.WhenAll would return when all the tasks gets finished which is passed within the method. So await on TaskEx.WhenAll would return the array of Return statements, such[详细]
2023-01-25 13:13 分类:问答What's the new C# await feature do? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this[详细]
2023-01-23 06:12 分类:问答How could the new async feature in c# 5.0 be implemented with call/cc?
I\'ve been following the new announcement regarding the new async feature that will be in c# 5.0. I have a basic understanding of continuation passing style and of the transformation the new c# compil[详细]
2023-01-23 04:03 分类:问答How does async works in C#?
Microsoft announced the Visual Studio Async CTP today (October 28, 2010) that introduces the a开发者_运维知识库sync and await keywords into C#/VB for asynchronous method execution.[详细]
2023-01-22 16:59 分类:问答