For those that are curious, this short synopsis in the Philadelphia Inquirer is helpful.
“Pennsylvania election law requires an automatic recount if the difference between the top two candidates for a statewide office is 0.5% of the vote or less. . . . The recount must be scheduled to be held by the third Wednesday following election day, which in this case would be June 1. . . . The second-place candidate can decline a recount.”