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

org.mwg.Callback Maven / Gradle / Ivy

The newest version!
package org.mwg;

/**
 * 

Generic structure to define tasks to be executed when an asynchronous result is released.

* In Java 8, Typescript and JavaScript, this structure can be replaced by a closure. * * @param The type of the expected result. */ @FunctionalInterface public interface Callback { /** * This method is called when an asynchronous result is delivered. * * @param result The expected result. */ void on(A result); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy