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

fr.lteconsulting.angular2gwt.client.interop.promise.Resolver Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
package fr.lteconsulting.angular2gwt.client.interop.promise;

import jsinterop.annotations.JsFunction;

@JsFunction
@FunctionalInterface
public interface Resolver
{
	/**
	 * 
	 * @param nullOrValueOrPromise can be either null, a T value or a Promise
	 */
	void resolve( Object nullOrValueOrPromise );
	
	/**
	 * Ideally would have this, but it is prevented by the GWT compiler :
	 * 
	 * void resolve();
	 * void resolve( T value );
	 * void resolve( Promise promise );
	 */
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy