@rustlang I'm trying to transform a BufReader into a Stream by impl'ing Stream and incrementally reading the buffer in calls to poll_next, but poll_next does not support async, so I'm stumped as to what the correct pattern ishttps://gist.github.com/mkralla11/6dadff6b5ea4a8c72ad2497e396f717c …
Maybe @asyncrs can help? I just need a little bit of a more complex example than in the docs.
-
-
Do you have some code for us to look at somewhere?
-
I linked to the gist in the first post of this thread, but for reference:https://gist.github.com/mkralla11/6dadff6b5ea4a8c72ad2497e396f717c …
- Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.