IAsyncEnumerable 썸네일형 리스트형 C# 비동기 스트림(IAsyncEnumerable) 처리와 응용 IAsyncEnumerable는 대용량 I/O를 지연(lazy) 처리하면서 메모리를 아끼고, 자연스럽게 back-pressure(생산과 소비 균형)를 제공하는 C# 8+의 비동기 스트림입니다. 파일/네트워크/DB 등 느린 소스를 한 줄(하나)씩 받아 처리할 때 유용합니다.1. 기본 문법: async iterator + await foreach생산자는 async iterator로 IAsyncEnumerable을 만들고, 소비자는 await foreach로 순회합니다.using System; using System.Collections.Generic;using System.Runtime.CompilerServices;using System.Threading;using System.Threading.Tasks.. 더보기 이전 1 다음