We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrchardCore/src/OrchardCore/OrchardCore.Recipes.Core/Services/RecipeHarvester.cs
Line 56 in a4081ac
Uses .Result because it is wrapped in a Linq Select
.Result
Should be adapted to use Task.WhenAll as the recipe reader underlying is making use of json async methods.
Task.WhenAll
The text was updated successfully, but these errors were encountered:
Good catch and should be named GetRecipeDescriptorAsync() with the Async suffix
GetRecipeDescriptorAsync()
Async
Should be adapted to use Task.WhenAll
Or just a foreach loop to do an await GetRecipeDescriptorAsync() on each recipeFile
await GetRecipeDescriptorAsync()
Sorry, something went wrong.
"foreach loop to do an await GetRecipeDescriptorAsync()" is safer since it doesn't require thread safety.
Agreed with the looped await.
Successfully merging a pull request may close this issue.
OrchardCore/src/OrchardCore/OrchardCore.Recipes.Core/Services/RecipeHarvester.cs
Line 56 in a4081ac
Uses
.Result
because it is wrapped in a Linq SelectShould be adapted to use
Task.WhenAll
as the recipe reader underlying is making use of json async methods.The text was updated successfully, but these errors were encountered: