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

[io-2] Output->Input pipe #76

Closed
altavir opened this issue Nov 16, 2019 · 1 comment
Closed

[io-2] Output->Input pipe #76

altavir opened this issue Nov 16, 2019 · 1 comment

Comments

@altavir
Copy link

altavir commented Nov 16, 2019

I've already encountered multiple cases, where I need to use direct pipe, that has Output on one side and an Input on the other side. Old io had copyTo operation, but it does not fully implement what I need, because one still needs some way to create those inputs and outputs, which in most cases requires additional copy operations. I am not sure about implementation yet, so putting it here for consideration for now. Probably there should be a specialized object, let's call it a Pipe, which implements both Input and Output (or provides input and output as properties). Inside that object there should be a synchronized queue of buffers, which could be written from one side and read from the other. The Pipe also should have an option to wait for the input which probably can't be done without coroutines.

@fzhinkin
Copy link
Collaborator

We're rebooting the kotlinx-io development (see #131), all issues related to the previous versions will be closed. Consider reopening it if the issue remains (or the feature is still missing) in a new version.

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

No branches or pull requests

2 participants