I will briefly introduce the recently developed theory of "generalized hydrodynamics", which describes large-scale behaviours in many-body quantum and classical integrable systems out of equilibrium. I will then explain how to use the theory in order to extract "Euler-scale" asymptotics of dynamical correlation functions in and out of equilibrium, with examples in the Lieb-Liniger and sinh-Gordon models.