Some models of Rinnai and other tankless water heaters have this feature. Usually that function is used to automatically fill a bathtub, the heater turns the water on and after a preset volume later, turns it off.