Package groovyx.gpars.group

Examples of groovyx.gpars.group.PGroup.lazyTask()


     * @param code The task body to run
     * @return A LazyDataflowVariable, which gets assigned the value returned from the supplied code
     */
    public static <T> Promise<T> lazyTask(final Closure<T> code) {
        final PGroup group = retrieveCurrentDFPGroup();
        return group.lazyTask(code);
    }

    /**
     * Creates a new task assigned to a thread from the current parallel group.
     * The task is lazy, since it only gets executed if the returned Promise instance is read or a then-callback is registered on it.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.