Hi,
Trying to get something working using continuations. I have the
following setup:
function capture() {
globals.x = new Continuation()
}
function test() {
//some code
capture()
//some code part 2
}
What I want to achieve is after capturing the continuation using
"capture()" in function test, I want to suspend the execution of
function test, untill I call globals.x() at some point.
This "point" can be a lot of time later in the program.
I haven't been able to find any way to do this, except throwing an
error and at high level in my program capture such errors and do
nothing with them.
Am I missing something?
I looked for docs/samplecode, but the only thing I found that was
remotely usefull was http://wiki.apache.org/cocoon/RhinoWithContinuations,
but it didn't answer this question.
Tnx in advance,
K.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino