Camilo Reyes shows off an interface:
The
IAsyncEnumerableinterface was introduced to address the limitations of theIEnumerableinterface and theTaskclass. This way, you can stream asynchronous data and process it efficiently as soon as it becomes available.In this take, you will learn how to work with
IAsyncEnumerableto asynchronously stream a big table and extract the data in a ETL process. You will also learn the difference betweenIAsyncEnumerableandIEnumerableand how to useIAsyncEnumerablein your everyday work. Then, you will look at comparisons between the two different approaches and why one is better than the other in certain scenarios.
Read on for a demonstration and dive into how IAsyncEnumerable implementations compare to IEnumerable in terms of memory utilization.