YahooArchive / mojito

[archiving soon] Yahoo! Mojito Framework
BSD 3-Clause "New" or "Revised" License
1.57k stars 214 forks source link

Better way to disable Zombie timer at mojit level #1091

Open dormfood opened 11 years ago

dormfood commented 11 years ago

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

caridy commented 11 years ago

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 commented 11 years ago

Workaround to signal the end of the process:

clearTimeout(ac._timer);
ooskapenaar commented 11 years ago

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