On Nov 27, 12:50 pm, "David Parks" <[EMAIL PROTECTED]> wrote: > Quick question regarding the new continuation methods: > > In the ContinuationsApiTest class, function f(int) returns an int. However > the method f() has no return (it always throws the ContinuationPending > exception). > > However the function still returns an int in the JS environment. Based on > the example it looks like the return value is based on the application state > object. However the javadocs only say that this is an "arbitrary" object for > passing state info. > > Does someone know the rules regarding the return value of a native java > method that calls captureContinuation()? > > Thanks, > David
Actually the return value is determined by the value of the "functionResult" parameter in the call to resumeContinuation. The application state object is a convenience for the application; you aren't required to use it. --N _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
