Assuming that you really are asking about desoldering guns, they do not use cocked springs to generate suction, so there is no cocking mechanism. The suction is most often produced using a diaphragm vacuum pump. Some models instead use a venturi "ejector" to transform pressurized air into vacuum.
Cocked springs are used in tools called "solder-suckers" that are manually, not electrically, operated.