Instead of calling the code that should be invoked after the operation is completed straightaway, we extract it into a separate callback, often a lambda, and pass this lambda to the caller in order for it to be called later.
Instead of calling the code that should be invoked after the operation is completed straightaway, we extract it into a separate callback, often a lambda, and pass this lambda to the caller in order for it to be called later.