Ok, here is my humble try with a CSV file that has 100 entry like:
CSV:
seq,first,last,email,digit
1,Antonio,Martinez,femeise@bi.gov,348429376
2,Robert,Butler,amfob@vaim.io,738848051
Code:
NimbleCSV.define(MyParser, separator: ",", escape: "\"")
File.stream!("/Users/samir/Downloads/100.csv")
|> MyParser.parse_stream
|> Stream.chunk(10)
|> Task.async_stream(&MyApp.CsvsController.chunk_handler_fn/1)
def chunk_handler_fn(csv_row) do
IO.puts csv_row
end
But, chunk_handler_fn was never called, I have attached the simple 100.csv sample file here:
https://s3.eu-central-1.amazonaws.com/test-files-74/100.csv
Is there something I have missed?


















