I was wondering what would be the best way to bridge 2 kj::AsyncIoStreams
to each other (read to write/write to read) so that they act as
pass-through? I'm assuming something like:

auto pumped = kj::ArrayBuilder<kj::Promise<void>>(2);
pumped.add(stream1.pumpTo(stream2).ignoreResult());
pumped.add(stream2.pumpTo(stream1).ignoreResult());
return kj::joinPromises(pumped.finish()).ignoreResult();

Thanks,
Vitali

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/capnproto/CAF8PYMh%3DKr9Yzmz9on4Cxprb0irNOGpV0MUtBxdGitbOgkjiEg%40mail.gmail.com.

Reply via email to