AsyncAwaitBestPractices | Extensions for System.Threading.Tasks.Task | Android library
kandi X-RAY | AsyncAwaitBestPractices Summary
kandi X-RAY | AsyncAwaitBestPractices Summary
Never, never, never, never, never use .Result or .Wait():.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AsyncAwaitBestPractices
AsyncAwaitBestPractices Key Features
AsyncAwaitBestPractices Examples and Code Snippets
Community Discussions
Trending Discussions on AsyncAwaitBestPractices
QUESTION
How would i go about returning two different kind of results from a task pool that im running in a List of tasks? in my Code i would like to run the two different methods in startCategorysearchAsync at the same time with the help of a task pool but they have different return values one with the category return parameter and one with SubCategoryReturnmparameter SubCategory is a child to Category though? this is my code
...ANSWER
Answered 2020-Apr-26 at 19:58The simplest way would be to let them return their individual result, and combine it with Task.WhenAll(...)
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AsyncAwaitBestPractices
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page