Open sandhu opened 9 years ago
Hey Sandhu, thank you for the pull request and sorry for not getting around to it sooner. I will check it later this week and see if I can merge it. However, this condition doesn't really appear where the left over chunk needs to be processed does not really occur because there's an ongoing stream. When the application is closed, it hardly matters if there's probably another full item in there. Even if, when I quit I'm going to miss data from some point on. The application is really meant to be kept running. Cheers, Matthias
No worries on the delay Matthias. I definitely agree with your comment that the issue will not be observed in the scenario the transducer is being used in this particular application, however if you wanted to use this transducer with a vector you'd see the issue.
Since the transducer represents an abstracted computation outside the specific scenario of a particular application to data, I created the PR.
Cheers, Achint
In the final step the buff will contain the last chunk. The final step now ensures that the left over chunk is processed.