u/Neophyte-in r/dotnet • Recommends
On “The anatomy of async iterators (aka await, foreach, yield) in .NET”
…icle is pretty good at explaning the use of the cancellation token.
https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken?view=netcore-3.1
good quick guide on dos and donts with async
https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AsyncGuidance.md
a good video on understanding the yield keyword
link to this video
As for expression trees and how it ties togeather with the yield keyword for e.g. to build IQueryable to compose a db query. c# in a nutshell has a great chapter on that. Just please never use the predicate builder, terrible pattern.…