Camilo Reyes shows off an interface:
The
IAsyncEnumerable
interface was introduced to address the limitations of theIEnumerable
interface and theTask
class. 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
IAsyncEnumerable
to asynchronously stream a big table and extract the data in a ETL process. You will also learn the difference betweenIAsyncEnumerable
andIEnumerable
and how to useIAsyncEnumerable
in 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.