Created
May 31, 2021 12:51
-
-
Save goldytech/b878e8cdcf8ea8963584c34f63a77656 to your computer and use it in GitHub Desktop.
Calling file processor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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