Callback interface for asynchronous operations that return a value of type T.
Called when the requested value is not available or encountered an error when returning.
Called with the appropriate return value on a successful operation.