-
-
Notifications
You must be signed in to change notification settings - Fork 31
Implement an AsyncBufRead adapter for InputStream #296
Comments
I can give this a shot. Can you please explain a bit how this should be implemented and the API you are looking for? I'm not yet familiar with the async traits. |
Shouldn't |
No, and that one also only has an adapter that you can get from it to have an
|
But |
Ah I missed that. You would implement |
Here is what I have so far for Problem is the test is calling First time I'm actually writing futures code so I may have miss something. :) |
Answered there in the commit :) |
As a result, I'm trying to workaround this immutability by wrapping the state in a
Is there a better pattern to handle all this? Or should I just implement |
You might want to use the |
This would work by managing an internal buffer itself. The size should be configurable. On completion the
AsyncBufRead
would be ready and provide access to the filled part of the buffer.The text was updated successfully, but these errors were encountered: