Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to reuse a conduit?

Is it safe to perform multiple actions using the same conduit value? Something like

do
  let sink = sinkSocket sock

  something $$ sink
  somethingElse $$ sink

I recall that in the early versions of conduit there were some dirty hacks that made this unsafe. What's the current status?

(Note that sinkSocket doesn't close the socket.)

like image 801
Roman Cheplyaka Avatar asked Nov 05 '13 16:11

Roman Cheplyaka


1 Answers

That usage is completely safe. The issue in older versions had to do with blurring the line between resumable and non-resumable components. With modern versions (I think since 0.4), the line is very clear between the two.

like image 133
Michael Snoyman Avatar answered Sep 30 '22 18:09

Michael Snoyman