title: Spring WebFlux Reactor - Updating Object In Flux
body: <p>Given following method: </p>
  
  <pre><code>Flux&lt;Person&gt; getAllPerson(Criteria criteria) 
  </code></pre>
  
  <p>How do i process the flux by changing a field in each of the Person object in the flux?</p>
  
  <pre><code>getAllPerson(criteria)
                  .map(person -&gt; person.setLastUpdated(new Date())
  </code></pre>
  
  <p>The setLastUpdated(new Date()) returns void</p>
  
  <p>I've tried a lot of different ways but i can't figure out the way to make it compile, for e.g.:</p>
  
  <pre><code>getAllPerson(criteria)
                  .map(person -&gt; {
                       person.setLastUpdated(new Date())
                       return person;
                   });
  </code></pre>