Showing results for August 2020 - Page 2 of 3 - The Old New Thing

Aug 12, 2020
3
0

Hidden constraints on the result type in Concurrency Runtime tasks

Raymond Chen
Raymond Chen

If you are using the Concurrency Runtime to represent asynchronous activity, there are some hidden constraints on the type . If you violate these constraints, the compiler will complain, but perhaps not in an obvious way.¹ If you try to create a where does not have a public default constructor, then you get an error like And if the is not ...

Code