title: return Mono/Flux with 2 nested subscriptions
body: <p>I need to return Mono / Flux for a function but this has 2 nested subscriptions. I am looking for a better solution to publish Mono/Flux only after this 2 subscription values are available then perform some operation to derieve finalValue. </p>
  
  <p>The final Objective is, The subscribers of the function getFinalValue() should be able to subscribe to final value. I have a similar need for Flux also.  What should be the best approach to do this? </p>
  
  <pre><code>fun &lt;T&gt; getFinalValue(): Mono&lt;T&gt; {
  
      object1.getValue1().subscribe { value1 -&gt;
  
          object2.getValue2(value1.id).subscribe{ value2 -&gt; 
  
          // perform some operation with value 1 and 2
          // derieve finalValue
         }
     } 
  
   return //I need to return Mono&lt;T&gt; which should publish finalValue to the subscribers of this function. 
  
  }
  
  </code></pre>