diff options
author | Philipp Haller <hallerp@gmail.com> | 2008-08-05 21:48:04 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2008-08-05 21:48:04 +0000 |
commit | 13cb455fb5f718f3e995fbd61990d003f26ce4ba (patch) | |
tree | d02248d694f1c4ac161ac830cd59d56da5070010 | |
parent | c0eb91b2d7d035ef6c4826882728fe8f0ba7ac96 (diff) | |
download | scala-13cb455fb5f718f3e995fbd61990d003f26ce4ba.tar.gz scala-13cb455fb5f718f3e995fbd61990d003f26ce4ba.tar.bz2 scala-13cb455fb5f718f3e995fbd61990d003f26ce4ba.zip |
Reverting a premature change to retain opportun...
Reverting a premature change to retain opportunity to implement #600.
-rw-r--r-- | src/library/scala/concurrent/ops.scala | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/src/library/scala/concurrent/ops.scala b/src/library/scala/concurrent/ops.scala index a1627cc267..4d416cf1a2 100644 --- a/src/library/scala/concurrent/ops.scala +++ b/src/library/scala/concurrent/ops.scala @@ -32,30 +32,13 @@ object ops { } } - /** Creates and starts a new thread that executes - * a given expression. + /** Evaluates an expression asynchronously. * - * @param p the expression to execute. - * @return the new thread. + * @param p the expression to evaluate */ - def spawn(p: => Unit): Thread = { + def spawn(p: => Unit) = { val t = new Thread() { override def run() = p } t.start() - t - } - - /** Creates and starts a new thread that - * has the specified <code>name</code> as its name, - * and executes a given expression. - * - * @param name the name of the new thread. - * @param p the expression to execute. - * @return the new thread. - */ - def spawnNamed(name: String)(p: => Unit): Thread = { - val t = new Thread(name) { override def run() = p } - t.start() - t } /** |