Hi Eddy,
This question is mostly directed at Geert.
Am I correct in thinking that after every continuation
instantiation, ContinuationContext.getActiveContext().remove()
should be called?
No, you shouldn't. Continuations will be cleaned up automatically,
just like sessions. If you do want to preserve memory and not have a
continuation tree (then the back button support and such will not
work however), just use http://rifers.org/docs/api/com/uwyn/rife/
engine/ElementSupport.html#setCloneContinuations(boolean), or
implement http://rifers.org/docs/api/com/uwyn/rife/engine/
ElementSupport.html#cloneContinuations() so that it always returns
false.
In a while(...) {...} loop, as in the example, every call to pause
() would start a new continuation, right?
Yes, that's the purpose of continuations, actually.
Best regards,
Geert
--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users