What are some ways to get better at cold water tolerance?

Cold water tolerance for swimming in pools, cold water immersion.

Are there medications or supplements to help?