McCain will linger on life support for as long as medically possible not to give POTUS one more supporter in the Senate. If it weren’t brain cancer he’d be the first brain in a can to legislate from a vat of oxygenated plasma just for spite.
I’m guessing they will keep a petri dish version of McCain around until Trump is out of office or the Dems take over the Senate.