Aqueous foams are unstable and age by drainage and coarsening. Today, these effects are well described, as also their impact on foam properties. In that respect, the foam viscoelastic properties evolve in time as a consequence of coarsening which tends to increase the mean bubble size. Here, we investigate the reverse coupling, and study if and how the continuous flow of a foam can impact its dynamics of coarsening. We introduce a new protocol where brief oscillatory measurements are inserted during a constant steady shear, allowing us to monitor the relative variation of the bubble size with time (obtained from the one of the elastic modulus G') as a function of the applied shear rate. It turns out that the coarsening rate is strongly impacted by the applied shear: this rate is continuously reduced above a critical shear rate, which itself decreases with the bubble size. This coarsening-rate reduction is interpreted as the result of out-of-equilibrium and shear-dependent film thicknesses, being higher than at rest. The critical shear rate, above which films are dynamically sustained at higher thickness than at equilibrium, emerges from the competition between the rate of rearrangements and the time required to drain the thick film created during the rearrangement. We thus report here a first experimental proof and measurements of out-of-equilibrium film thicknesses within a sheared foam, and of the impact this has on coarsening.