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