Callers of Channel.NextPackageUntil had to include workarounds to consume all packages for their data stream.
As a previous PR now ensures that a DonePackage{TDS_DONE_FINAL} finishes any given data stream the function itself can now guarantee that all packages are consumed if an error occurs.
This made it possible to clean up and reuse the code.
Description
Callers of
Channel.NextPackageUntil
had to include workarounds to consume all packages for their data stream. As a previous PR now ensures that aDonePackage{TDS_DONE_FINAL}
finishes any given data stream the function itself can now guarantee that all packages are consumed if an error occurs. This made it possible to clean up and reuse the code.Related issues
Link any related issues here.
Tests