Method Pipe.pipe()->set_output_closed_callback() Method set_output_closed_callback void set_output_closed_callback(void|function(mixed, object:mixed) close_cb, void|mixed id) Description Set the callback function to be called when one of the outputs has been closed from the other side.