public < T > T onWhile ( Supplier < T > f ) { try ( Guard g = on ( ) ) { return f . get ( ) ; } }
Runs the given computation making sure this indicator is on . When done this indicator is reset to the previous state .