# HG changeset patch # User Jaroslav Tulach # Date 1394401078 -3600 # Node ID 45e01459f94d70245f328b11edf591ec5bf2fd0e # Parent 17450760bf144d70a4ed88a6b656866c3a4b3d0b Documenting invokeLater diff -r 17450760bf14 -r 45e01459f94d boot/src/main/java/org/apidesign/html/boot/spi/Fn.java --- a/boot/src/main/java/org/apidesign/html/boot/spi/Fn.java Sun Mar 09 21:13:33 2014 +0100 +++ b/boot/src/main/java/org/apidesign/html/boot/spi/Fn.java Sun Mar 09 22:37:58 2014 +0100 @@ -203,10 +203,6 @@ return FnContext.activate(p); } - public void invokeLater(Object thiz, Object... args) throws Exception { - invoke(this, args); - } - /** Invokes the defined function with specified this and * appropriate arguments. * @@ -217,6 +213,20 @@ * @throws Exception if something goes wrong, as exception may be thrown */ public abstract Object invoke(Object thiz, Object... args) throws Exception; + + /** Invokes the defined function with specified this and + * appropriate arguments asynchronously. The invocation may be + * happen "later". + * + * @param thiz the meaning of this inside of the JavaScript + * function - can be null + * @param args arguments for the function + * @throws Exception if something goes wrong, as exception may be thrown + * @since 0.7.6 + */ + public void invokeLater(Object thiz, Object... args) throws Exception { + invoke(this, args); + } /** Provides the function implementation access to the presenter provided * in {@link #Fn(org.apidesign.html.boot.spi.Fn.Presenter) the constructor}.