Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Below is a brief explanation. (Parts are copied from the scala doc). Let me know if there is something that you dont understand and I will try to be more specific and give you a concrete example.</p> <p><strong>abstract class scala.actors.Future</strong> -- Are you familiar with <a href="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/Future.html" rel="nofollow">java.util.concorrent.Future</a>? <em>scala.actors.Future</em> basically represents the result of an asynchronous computation but for <em>actors</em>.</p> <p><strong>scala.actors.Futures</strong> -- An object (~singleton) that contains four utility methods for handling <em>scala.actors.Future</em>.</p> <p><strong>scala.parallel.Future</strong> -- (This one was new to me, but it contains very basic operations (apply and isDone)) its a function without parameters that will block the caller if the parallel computation associated with the function is not completed. (function? hint: extends () ) </p> <p><strong><a href="http://www.scala-lang.org/api/current/scala/collection/parallel/FutureThreadPoolTasks.html" rel="nofollow">scala.collection.parallel.FutureThreadPoolTasks</a></strong> -- From the scala doc: "An implementation of tasks objects based on the Java thread pooling API and synchronization using futures." Is that enough? :)</p> <p><strong>scala.concurrent.FutureTaskRunner</strong> -- Are you familiar with <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/Executor.html" rel="nofollow">Executor</a>? <a href="http://www.scala-lang.org/archives/downloads/distrib/files/nightly/docs/library/scala/actors/scheduler/ExecutorScheduler.html" rel="nofollow">ExecutorScheduler</a> is one (out of three) concrete implementations in the scala standard library. <em>executeFromActor</em> is one of the more interesting methods and should give you a hint about when you need to use this one</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload