async public Task<bool> CreateFolrderAsync(string florderName)
{
//return Task.Run(async () =>
// {
try
{
StorageFolder folder = await storageFolder.CreateFolderAsync(florderName, CreationCollisionOption.OpenIfExists);
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex.Message);
throw ex;
}
return true;
//});
}
注释掉的部分,注释和不注释都可以正常运行,那么用Task.run()和不用有什么不同的地方?用哪种好?