With my DGF, the whole family gathered from far and near (up to 20 at any time!) while he lay dying for a full week. By day 5, we were on our knees, so set up shifts. My cousin and I were on the 10:00 to 2:00 am shift, and he died as his 3 DC were coming in at the end of the long hallway. I'm sure he did not want them to have to watch. I'm honored to have been with him.
With my DF, he died at home, with all of his DC, wife and SIL around him. It was peaceful and beautiful and expected. The medical staff were amazing. They told us it would be that week, then in the next 48 hours, then within 6 hours. They were right, and we could plan accordingly. That really helped.
With my best friend, she was in hospital and we got told it was imminent. Her family, and some of us, her best friends and colleagues, were with her for the last 5 or 6 hours, and we got to say our goodbyes. It was hard up to the last 30 minutes, but then very peaceful.
With my DM, I wasn't there but my siblings caught her last breaths. That one was not expected.
I'm glad I had the opportunity, the good fortune, the privilege to be with those I loved. I do not, however, want anyone around when I go. I've told my DH that there are to be NO friends or colleagues there at the last. That is a step too far for me. Selfish, but how I feel.