I use an instapot. A few hours might be too long to leave rice in there. I don't know. I usually at least turn mine off within the first hour or so and do something with it. Pretty sure food safety guidelines don't recommend leaving rice on warm for hours in any case.