delight.async.callbacks.SimpleCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of delight-async Show documentation
Show all versions of delight-async Show documentation
Asynchronous utilities for Java and GWT applications. Includes a simple promise implementation for Java.
package delight.async.callbacks;
/**
*
* A very basic callback which allows for the caller to be notified of the
* completion of the operation.
*
* This callback extends {@link FailureCallback} thus failures can be reported
* through the method {@link #onFailure(Throwable)}.
*
* For asynchronous operations that return a value, use {@link ValueCallback}
* instead.
*
* @author Max Rohde
*
*/
public interface SimpleCallback extends FailureCallback {
/**
* Called when the asynchronous operation has completed successfully.
*/
public void onSuccess();
}