The Low Energy RHIC electron Cooling (LEReC) project at Brookhaven National Laboratory recently demonstrated for the first time cooling of hadron bunches with radio-frequency (rf) accelerated electron bunches. LEReC uses a high-voltage photoemission electron gun with stringent requirements for beam current, beam quality, and stability. The electron gun has a photocathode with a high-power fiber laser, and a novel cathode production, transport, and exchange system. It has been demonstrated that the high-voltage photoemission gun can continually produce a high-current electron beam with a beam quality suitable for electron cooling. We describe the operational experience with the LEReC dc photoemission gun in RHIC and discuss the important aspects needed to achieve the required beam current, beam quality, and stability.