mojito
mojito copied to clipboard
Better way to disable Zombie timer at mojit level
It may come to a situation where the developers want to handle the http response by themselves, and calling actionContext.done will be a problem. Per discussion with Caridy, currently there is no good way to disable the zombie detection in mojit level except for hacking action context. Maybe this can be done in a cleaner api call.
Please help label this as an "enhancement"
Thanks, Steven
Though: "The enhancement here is really about been able to call ac.done with a noop signal when the output has been sent thru another channel."
Workaround to signal the end of the process:
clearTimeout(ac._timer);
+1
Jbtw: That workaround does not seem to work in arbitrary child controllers 0.5.x, 0.7.1 (i.e. all our controllers are under HTMLFrameMojit, and there this call does not help, working with clones, or something?).