ConfigureAwait for awaited task

This commit is contained in:
cdwcgt 2023-02-17 22:19:24 +09:00
parent e84e011d5d
commit 29d6483e17

View File

@ -78,7 +78,7 @@ namespace osu.Game.Database
using (var stream = exportStorage.CreateFileSafely(filename))
{
success = await ExportToStreamAsync(model, stream, notification, cancellationToken ?? notification.CancellationToken);
success = await ExportToStreamAsync(model, stream, notification, cancellationToken ?? notification.CancellationToken).ConfigureAwait(false);
}
if (!success)
@ -119,7 +119,7 @@ namespace osu.Game.Database
notify.CompletionText = "Export Complete, Click to open the folder";
notify.State = ProgressNotificationState.Completed;
return true;
}, cancellationToken);
}, cancellationToken).ConfigureAwait(false);
}
/// <summary>