The wheels are rotating at about 900 rpm on takeoff, normally on retraction brakes are automatically applied to stop the wheels from spinning.
If they have a brake unserviceable, the procedure is to keep the gear down for 2 minutes so the wheels can have a chance to stop spinning before retraction.