Foreshadowing (and its close relatives) provides a sense of closure and satisfaction at the end of a story or scene. Foreshadowing also helps audiences avoid the feeling ofdeus ex machina. This describes the feeling that something has suddenly swooped in to save the day (originally in stories f...