Add API methods to perform requests out-of-queue

This commit is contained in:
Dean Herbert
2019-11-29 20:03:14 +09:00
parent 4dc8e0ae20
commit c49aeb08c4
8 changed files with 46 additions and 35 deletions

View File

@ -99,17 +99,7 @@ namespace osu.Game.Database
currentDownloads.Add(request);
PostNotification?.Invoke(notification);
Task.Factory.StartNew(() =>
{
try
{
request.Perform(api);
}
catch (Exception error)
{
triggerFailure(error);
}
}, TaskCreationOptions.LongRunning);
api.PerformAsync(request);
DownloadBegan?.Invoke(request);
return true;