-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Move the flush method from Stream to Print #2387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This method originally flushed pending input bytes, which makes sense in Stream. At some point it was changed to flush output bytes instead, but it was never moved to Print to reflect this. Since Stream inherits from Print, this should not really affect any users of the Stream or Print classes. However to prevent problems with existing implementations of the Print class that do not provide a flush() implementation, a default implementation is provided. We should probably remove this at some point in the future, though.
I just rebased this PR. Anything keeping it from being merged? |
+1, this should be merged. I need this feature available from a |
I imagine this needs a rebase, since the sam files are now gone |
This looks good to me. I'd recommend merging. |
@PaulStoffregen: I don't think merging through the online interface will do the right thing, since this modifies files that were deleted in master. I'm surprised this doesn't produce a merge conflict |
it's still mergeable becuase it targets the |
Manually merged here: ed7007c |
This method originally flushed pending input bytes, which makes sense in
Stream. At some point it was changed to flush output bytes instead, but
it was never moved to Print to reflect this.
Since Stream inherits from Print, this should not really affect any
users of the Stream or Print classes. However to prevent problems with
existing implementations of the Print class that do not provide a
flush() implementation, a default implementation is provided. We should
probably remove this at some point in the future, though.