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

def.js.PromiseLike Maven / Gradle / Ivy

The newest version!
package def.js;

import java.util.function.Function;

@jsweet.lang.Interface
public abstract class PromiseLike extends def.js.Object {
	/**
	 * Attaches callbacks for the resolution and/or rejection of the Promise.
	 * 
	 * @param onfulfilled
	 *            The callback to execute when the Promise is resolved.
	 * @param onrejected
	 *            The callback to execute when the Promise is rejected.
	 * @returns A Promise for the completion of which ever callback is executed.
	 */
	native public  PromiseLike then(Function onfulfilled, def.js.Function onrejected);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy