R
- The return type of the callback.T
- The argument type of the callback.public interface Callback<R,T>
Callbacks are typically created as anonymous classes. In order to make
debugging easier, it is recommended to override the Object.toString()
method so that it returns a string that briefly explains what the callback
does. If you use Deferred
with DEBUG
logging turned on,
this will be really useful to understand what's in the callback chains.