Skip to content
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

Tee sample #1559

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Tee sample #1559

merged 1 commit into from
Dec 18, 2024

Conversation

swankjesse
Copy link
Collaborator

No description provided.

@swankjesse
Copy link
Collaborator Author

@swankjesse swankjesse merged commit d144d83 into master Dec 18, 2024
11 checks passed
@swankjesse swankjesse deleted the jwilson.1217.tee branch December 18, 2024 03:48
}

fun main() {
val a = System.out.sink()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this magic

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.out is a PrintStream, PrintStream is an OutputStream, we have OutputStream.sink().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants