No, first of all, that’s such an extreme hypothetical scenario that I doubt anyone has ever set a 10 year notice period.
But I’ll answer your ridiculous hypothetical question, you are still employed until the day you leave whilst working your notice period. If the employer wants to get rid of...