We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b2fe0a commit ec15969Copy full SHA for ec15969
1 file changed
src/RestSharp/AsyncHelpers.cs
@@ -45,7 +45,7 @@ static void RunSync(Func<Task> task) {
45
/// <returns>Return value from the task</returns>
46
public static T RunSync<T>(Func<Task<T>> task) {
47
T result = default!;
48
- RunSync(async () => { result = await task(); });
+ RunSync(async () => { result = await task().ConfigureAwait(false); });
49
return result;
50
}
51
0 commit comments