class SampleController { def action = { evt = null -> def result = execFuture { // long computation } … result.get() } }