@yoshuawuyts, thanks for the blog articles on Rust streams, really helpful. Q: is there a way to subscribe to "on data" event for a Read stream (similar to Node.js streams)? Problem: I need to pass a file stream for upload and listen for "data" event to integrate progress bar.
-
-
Thanks, yeah, writing a simple wrapping stream combinator is fine. The problem is one have to do such ad-hoc wrappers all the time now in callers, while pub/sub system with listening the "data" event would be something generic. Thanks for confirming though!
-
Maybe consider using channels here?
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.