Actors Future
For now it is expected to use only inside actor model FutureTask<String> future = new FutureTask<String>(new Callable<String>() { public String call() { return searcher.search(target); }}); executor.execute(future);
@see FutureTask
@see Executor
@since 1.5
@author Doug Lea
This alias is defined so that retro-translation won't affect the publicly committed signature of the API. @author Kohsuke Kawaguchi
{@code FutureTask future =}new FutureTask(new Callable() public String call() { return searcher.search(target); }}); executor.execute(future);} Memory consistency effects: Actions taken by the asynchronous computation happen-before actions following the corresponding {@code Future.get()} in another thread. @see FutureTask @see Executor @since 1.5 @author Doug Lea @param < V> The result type returned by this Future's {@code get} method
| |
| |
| |