dotnet / dotnet/dotnet-api-docs

explain default behavior of ConfigureAwait()

Open
#782 9 comments 0 reactions 0 assignees View on GitHub
.net/prod area-System.Threading.Tasks Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

what is the default behavior? will code continue to run on captured context by default or not?
> ...attempt to marshal...

Does that mean attempt may fail? Under what conditions?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: e069a261-9adf-92e6-9b16-8a701968a36d
* Version Independent ID: a12bf93b-1690-1604-20b0-2bf5ca44b372
* Content: [Task.ConfigureAwait(Boolean) Method (System.Threading.Tasks)](https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.configureawait?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(System.Threading.Tasks.Task.ConfigureAwait)%3Bk(TargetFrameworkMoniker-.NETFramework%2CVersion%3Dv4.6.1)%3Bk(DevLang-csharp)%26rd%3Dtrue%26f%3D255%26MSPPError%3D-2147217396&view=netframework-4.7.2#feedback)
* Content Source: [xml/System.Threading.Tasks/Task.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Threading.Tasks/Task.xml)
* Product: **.net**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.