execFuture(ExecutorService s){}

Purpose

Schedules a block of code on a target ExecutorService.

Examples

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

Description

See the threading section for more information about this method and others like it.