3

Per this SO question. StephenCleary states not to use Async Compatablity Pack.

When researching this more fully I have come across MSDN posts on how to use it and why, I have come across SO posts on how to use it and best practices, and the NuGet Gallery states that it is designed for .net 4.0

Why would this not be recommended by someone who wrought the book Concurrancy and C#?

1 Answer 1

9

.Net 4.0 supports await perfectly fine with the compatibility pack.

However, ASP.Net 4.0 does not, because it makes far more assumptions about the async model.

Using await in ASP.Net requires a better SynchronizationContext, which was added in 4.5.

Sign up to request clarification or add additional context in comments.

1 Comment

@gh9: This is exactly correct. Note that the question you linked to is regarding an ASP.NET MVC project, so it should not use Microsoft.Bcl.Async. It's perfectly acceptable to use for desktop applications.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.