mojito icon indicating copy to clipboard operation
mojito copied to clipboard

Better way to disable Zombie timer at mojit level

Open dormfood opened this issue 11 years ago • 3 comments

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

dormfood avatar May 02 '13 18:05 dormfood

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."

caridy avatar May 03 '13 15:05 caridy

Workaround to signal the end of the process:

clearTimeout(ac._timer);

caridy avatar May 19 '13 15:05 caridy

+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?).

ooskapenaar avatar Jul 26 '13 14:07 ooskapenaar