class SampleController { def action = { evt = null -> execOutsideUI { // long running computation } } }