eclipse-vertx / vert.x

Vert.x is a tool-kit for building reactive applications on the JVM
http://vertx.io
Other
14.31k stars 2.08k forks source link

readStream mapping to other type of readStream to support pipe #4138

Open wang007 opened 3 years ago

wang007 commented 3 years ago

Read me

readStream mapping to other type of readStream to support pipe

Describe the feature

ReadStream rs; WriteStream ws;

when ReadStream of sub type and WriteStream of sub type do not match, Pipe cannot be performed. so add map function to support this;

rs.map(Integer::toString).pipeTo(ws);
wang007 commented 3 years ago

4126