Skip to content

Instantly share code, notes, and snippets.

@goldytech
Created May 31, 2021 12:51
Show Gist options
  • Save goldytech/b878e8cdcf8ea8963584c34f63a77656 to your computer and use it in GitHub Desktop.
Save goldytech/b878e8cdcf8ea8963584c34f63a77656 to your computer and use it in GitHub Desktop.
Calling file processor
var pool = ArrayPool<Employee>.Shared;
var employeeRecords = pool.Rent(100000);
var pipeLinesTest = new WithPipeLines();
try
{
await pipeLinesTest.ProcessFileAsync(_filePath, employeeRecords);
}
finally
{
pool.Return(employeeRecords, clearArray: true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment