I've been reading a fantasy-novel series where the author cleverly seeds expectation in the reader. This works as a hook to continue reading.
It's an audio-book, so I can't easily riffle through to find an instance. I'll give a rather bland and generic example of my own devising in the hope that you can understand.
John thought to himself, "There must be a way to get out of this awful situation"
"but there isn't", he concluded, "If only ..."The important factor is that earlier in the story, Mary has been shown to have some knowledge or ability that would help John. We know it but John doesn't.
This builds tension for the reader. Will they meet? Will John's problem be solved? Will they fall in love?
What is the term that fits this? Is it a blanket term, or are there subdivisions of it?