A functional interface representing a callback that takes a result of type T.
The type of the result.
Invokes the callback with the provided result.