public class ConcurrentOps extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R> Future<R> |
future(Function0<R> p)
Evaluates an expression asynchronously, and returns a closure for
retrieving the result.
|
static <A,B> Tuple2<A,B> |
par(Function0<A> xp,
Function0<B> yp)
Evaluates two expressions in parallel.
|
static void |
spawn(VoidFunction0 p)
Evaluates an expression asynchronously.
|
public static <R> Future<R> future(Function0<R> p)
public static <A,B> Tuple2<A,B> par(Function0<A> xp, Function0<B> yp) throws InterruptedException, ExecutionException
public static void spawn(VoidFunction0 p)
Copyright © 2015. All rights reserved.