Griffon Guide 0.9.5-rc2 - Reference Documentation

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