I'd probably prefer to not know, and die in my sleep - surely preferred over the dread of knowing the moment, even if it would be painless/easy. Not sure, my opinion might be different if I'm old and suffering!
The moments before certain death were very relaxing for me. It was easy to identify the things that didn't matter and let go, and to make peace with my pain.