Unusual braking method

Mt Washington cog railway locomotives compress air to retard motion when descending. Has this technique ever been tried with conventional steam engines for braking? Bert