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

net.md_5.bungee.api.Callback Maven / Gradle / Ivy

There is a newer version: 1.20-R0.2
Show newest version
package net.md_5.bungee.api;

/**
 * Represents a method which may be called once a result has been computed
 * asynchronously.
 *
 * @param  the type of result
 */
public interface Callback
{

    /**
     * Called when the result is done.
     *
     * @param result the result of the computation
     * @param error the error(s) that occurred, if any
     */
    public void done(V result, Throwable error);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy