I'm trying to use continuations with Rhino but I find mixed instructions as to how to do it. I want to create and use continuations in JS proper.
https://developer.mozilla.org/en-US/docs/New_in_Rhino_1.7R2#Java_API.C2.A0for_Continuations
shows how to use them from Java, in the form of handling exceptions (I think that's just the wrong way to look at it).
http://wiki.apache.org/cocoon/RhinoWithContinuations
shows a now deprecated way of using them - it's not allowed to explicitly create continuations anymore.
Can anyone clarify this? Can I now create JS continuations with Rhino only via Java side manipulation using the 4 methods in the 1.7R2 release notes?