home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (RunnableFuture.java)

This example Scala source code file (RunnableFuture.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

future, future, runnable, runnable, runnablefuture, runnablefuture

The Scala RunnableFuture.java source code

/*
 * Written by Doug Lea with assistance from members of JCP JSR-166
 * Expert Group and released to the public domain, as explained at
 * http://creativecommons.org/licenses/publicdomain
 */

package scala.actors.threadpool;

/**
 * A {@link Future} that is {@link Runnable}. Successful execution of
 * the <tt>run method causes completion of the Future
 * and allows access to its results.
 * @see FutureTask
 * @see Executor
 * @since 1.6
 * @author Doug Lea
 */
public interface RunnableFuture extends Runnable, Future {
    /**
     * Sets this Future to the result of its computation
     * unless it has been cancelled.
     */
    void run();
}

Other Scala examples (source code examples)

Here is a short list of links related to this Scala RunnableFuture.java source code file:



my book on functional programming

 

new blog posts

 

Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.