So sorry for your loss. I hope it brings some comfort that having you by his side made all the difference to him. You were there right till the end when he needed you most.
I can relate. This weekend my guy had the sudden onset of a disease that makes it so he can barely walk. I'm not sure how long he'll be here, or how I'll handle when he has to go.