Can any one tell me difference between GetAwaiter()
and ConfigureAwait(false)
.
Both of them are used in Async method to solve the deadlock situation and ConfigureAwait
to complete task without using Synchrnoization context. I'm looking for scenarios where we can use GetAwaiter()
and where we use ConfigureAwait(false)
.
I heard if it is library I'm building then I need to use ConfigureAwait(false)
which generates Configurable Awaitable object of Await task. Can I use ConfigureAwait
in Unittest case project or should use GetAwaiter()
which get await task.