pasta goes on to cook for the whole time before eating, so it's very difficult to stop it. A first stop can be given putting it outside of water, just a little "al dente", not completely cooked. Save some water of cooking, and, just before serving, add a half glass of this water before adding the sauce, and mix. It's not a wonderful idea, but can be useful. Some restaurants do so.
Otherwise, if the delay is little, you can add a half litre of cold water in the pan in which you are cooking pasta, as soon as you have switched off the fire. So cooking nearly stops. Of course, the temperature goes down.....