1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 23:12:56 +08:00

fix weird async logic

This commit is contained in:
cdwcgt 2022-12-15 20:59:11 +09:00
parent e02b8cb199
commit 3d6d3b4025
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2
2 changed files with 2 additions and 2 deletions

View File

@ -453,7 +453,7 @@ namespace osu.Game.Beatmaps
public Task<Live<BeatmapSetInfo>?> ImportAsUpdate(ProgressNotification notification, ImportTask importTask, BeatmapSetInfo original) =>
beatmapImporter.ImportAsUpdate(notification, importTask, original);
public void Export(BeatmapSetInfo beatmap) => Task.Run(() => beatmapExporter.ExportAsync(beatmap));
public Task Export(BeatmapSetInfo beatmap) => beatmapExporter.ExportAsync(beatmap);
private void updateHashAndMarkDirty(BeatmapSetInfo setInfo)
{

View File

@ -183,7 +183,7 @@ namespace osu.Game.Scoring
public Task<IEnumerable<Live<ScoreInfo>>> Import(ProgressNotification notification, params ImportTask[] tasks) => scoreImporter.Import(notification, tasks);
public void Export(ScoreInfo score) => Task.Run(() => scoreExporter.ExportAsync(score));
public Task Export(ScoreInfo score) => scoreExporter.ExportAsync(score);
public Task<Live<ScoreInfo>> ImportAsUpdate(ProgressNotification notification, ImportTask task, ScoreInfo original) => scoreImporter.ImportAsUpdate(notification, task, original);