mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-20 22:05:07 +00:00
Remove Task.Run in ImageLoader.LoadImageAsync
This commit is contained in:
parent
edcdeb09c1
commit
f03a627a86
3 changed files with 10 additions and 16 deletions
|
|
@ -32,12 +32,10 @@ namespace MapControl
|
|||
return Task.FromResult<IImage>(null);
|
||||
}
|
||||
|
||||
return Task.Run(() =>
|
||||
using (var stream = File.OpenRead(path))
|
||||
{
|
||||
using var stream = File.OpenRead(path);
|
||||
|
||||
return LoadImage(stream);
|
||||
});
|
||||
return LoadImageAsync(stream);
|
||||
}
|
||||
}
|
||||
|
||||
internal static async Task<IImage> LoadMergedImageAsync(Uri uri1, Uri uri2, IProgress<double> progress)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue