CsvHelper icon indicating copy to clipboard operation
CsvHelper copied to clipboard

IAsyncEnumerable With Yeild

Open McInnesIan opened this issue 4 years ago • 3 comments

Provide API to allow async read of one CSV line at a time with configured mapping and yield each line . So API signature would be asyn IAsyncEnumerable<mappedClass> ReadAsyn(). This could then be processed via await foreach(mappedClass line in csv.ReadAsync(); This would allow you to read one line at a time which would b mapped by CSVHelper to an object and not have to read the whole file at once.

McInnesIan avatar Aug 22 '21 12:08 McInnesIan

I believe this is already possible. https://github.com/JoshClose/CsvHelper/issues/1213

AltruCoder avatar Aug 22 '21 16:08 AltruCoder

Yes, sorry, looked at the source code, think it is, sorry

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: David Specht @.> Sent: Sunday, August 22, 2021 5:07:10 PM To: JoshClose/CsvHelper @.> Cc: McInnesIan @.>; Author @.> Subject: Re: [JoshClose/CsvHelper] IAsyncEnumerable With Yeild (#1848)

I believe this is already possible. #1213https://github.com/JoshClose/CsvHelper/issues/1213

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/JoshClose/CsvHelper/issues/1848#issuecomment-903291562, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADBM6EC5OSAZ7AR6UPAPXMTT6EOC5ANCNFSM5CS4PELA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

McInnesIan avatar Aug 22 '21 16:08 McInnesIan

@McInnesIan, please, update this bug or resolve it

Artem-Sukhliak-Funzy avatar Nov 10 '21 14:11 Artem-Sukhliak-Funzy