What is a callback function?
A callback function is a function you pass (as a reference or a pointer) to a certain function or object. This function or object will call this function back any time later, possibly multiple times, for any kind of purpose :
...
So describing a callback as a function being called at the end of another function or task is overly simplifying (even if it's a common use case).