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.
| Modifier and Type | Field and Description |
|---|---|
static Callback<Object,Object> |
PASSTHROUGH
The identity function (returns its argument).
|
| Modifier and Type | Method and Description |
|---|---|
R |
call(T arg)
The callback.
|
Copyright © 2010–2025 The SUAsync Authors. All rights reserved.