MacOS handles this perfectly. It clearly notifies you when an update will be installed if you restart.
This can be rather dangerous if your laptop is stuck in a backpack with no airflow on a hot day.
The laptop would be hot enough to toast bread when I pull it out.
If I'm out of town for 2 weeks, I cannot have my Windows 10 machine reboot, it runs the software for my security cameras and that can't start until I log back in. Thankfully, I set up Windows Update to not install updates automatically(Win10 Pro) way back when it came out and it has continued to stick. Major updates are a constant worry that they will finally break this forever when it shouldn't even be a concern in the first place.
shutdown /r /t 0
AFAIK, this has always avoided updates.
^_^