Closed xloem closed 5 years ago
This seems a little controversial to me as it could break existing code slightly.
I will let the pull request mellow for a while and see if there are any objections.
Some other projects do implement resetBuffer (probably lifted from this project originally):
It seems like most do not.
if desired, the user may do this by deactivating/reactivating the stream (which also triggers a reset and corresponding buffer drain).
This seems a little controversial to me as it could break existing code slightly.