Solution of radiation-reaction problem for the uniform magnetic field