SAN FRANCISCO — Yahoo shareholders will vote June 8 on whether to sell the company’s internet businesses to Verizon Communications for $4.48 billion. A yes vote, which is widely expected, would end Marissa Mayer’s largely unsuccessful five-year effort to restore the internet pioneer to greatness.

But Ms. Mayer, the company’s chief executive, will be well compensated for her failure. Her Yahoo stock, stock options and restricted stock units are worth a total of $186 million, based on Monday’s stock price of $48.15, according to data filed on Monday in the documents sent to shareholders about the Verizon deal.

That compensation, which will be fully vested at the time of the shareholder vote, does not include her salary and bonuses over the past five years, or the value of other stock that Ms. Mayer has already sold. All told, her time at Yahoo will have netted her well over $200 million, according to calculations based on company filings.

Ms. Mayer did give up additional equity compensation that she would have received in 2017 as a penalty for her management team’s failure to act on a 2014 breach of the company’s systems that led to the theft of data on 500 million users. Last month, the federal government indicted four people, including two Russian intelligence officials, in that crime.