Package groovyx.gpars.dataflow.impl

Examples of groovyx.gpars.dataflow.impl.ThenMessagingRunnable


    private Promise<List> doThenForkAndJoin(final PGroup group, final Pool pool, final Closure<? extends Object>[] closures) {
        final DataflowVariable<List> result = new DataflowVariable<List>();
        final List<Promise> partialResults = new ArrayList<Promise>(closures.length);
        for (final Closure<? extends Object> closure : closures) {
            final DataflowVariable<? extends Object> partialResult = new DataflowVariable<Object>();
            whenBound(pool, new ThenMessagingRunnable(partialResult, closure));
            partialResults.add(partialResult);
        }
        group.whenAllBound(partialResults,
                new DataflowMessagingRunnable(partialResults.size()) {
                    @Override
View Full Code Here

TOP

Related Classes of groovyx.gpars.dataflow.impl.ThenMessagingRunnable

Copyright © 2018 www.massapicom. 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.