groovyx.gpars
Annotation Type AsyncFun


@Documented
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface AsyncFun

This annotation makes a field or local variable as an asynchronous function, and the field/variable should be evaluated only within the context of a ThreadPool.

Author:
Vladimir Orany, Hamlet D'Arcy Date: May 14, 2011

Optional Element Summary
 boolean blocking
          Set to true to execute the closure in blocking mode.
 java.lang.Class value
           
 

value

public abstract java.lang.Class value
Default:
groovyx.gpars.GParsPoolUtil.class

blocking

public abstract boolean blocking
Set to true to execute the closure in blocking mode.

Returns:
The current value
Default:
false

Copyright © 2008–2010 Václav Pech. All Rights Reserved.