DEV Community

Discussion on: Async / Await: From Zero to Hero

Collapse
 
mateiadrielrafael profile image
Matei Adriel

But what does ConfigureAwait(false) do exactly?

Collapse
 
cellivar profile image
Cellivar

There isn't an easy answer to this question that doesn't require more explanation. There is an FAQ of sorts here: devblogs.microsoft.com/dotnet/conf...

The very short and condensed version is that it signals to the async system that you want your asynchronous code to not be marshaled back to the original calling context. I highly recommend careful study of the FAQ post for more details on the consequences of that.

Thread Thread
 
mateiadrielrafael profile image
Matei Adriel

I don't use c# outside on my rare unity doodles. In case anyone is familisr with f#, is there anything similar in f# (for the async computational expressiom)?