All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sproutigy.commons.async.ExecutionCallback Maven / Gradle / Ivy

The newest version!
package com.sproutigy.commons.async;

@FunctionalInterface
public interface ExecutionCallback {
    enum Result {
        Success,
        Failure,
        Cancelled;

        public boolean isSuccess() {
            return this == Success;
        }

        public boolean isCancelled() {
            return this == Cancelled;
        }
    }

    void callback(Result result, V value, Throwable cause);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy