That is why it is recommended one have a living will, and if one has a terminal illness, a Do Not Resuscitate order.
When I was involved with the volunteer fire department, we learned of the very low success rates of CPR.
The exceptions are children, drownings and hypothermia. In those...