From fe0a2ac4c3b393cc3684cf66a4de7c85a29d68fd Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Tue, 27 Apr 2010 22:10:36 +0000 Subject: Fixed scaladoc output for several types and mem... Fixed scaladoc output for several types and members. No review. --- src/actors/scala/actors/Actor.scala | 30 ++++++++++-------------- src/actors/scala/actors/Channel.scala | 17 +++++++------- src/actors/scala/actors/remote/RemoteActor.scala | 27 ++++++++++----------- 3 files changed, 33 insertions(+), 41 deletions(-) (limited to 'src/actors') diff --git a/src/actors/scala/actors/Actor.scala b/src/actors/scala/actors/Actor.scala index c78447b92e..cccb3ce4fb 100644 --- a/src/actors/scala/actors/Actor.scala +++ b/src/actors/scala/actors/Actor.scala @@ -116,17 +116,17 @@ object Actor extends Combinators { } /** - *

This is a factory method for creating actors.

+ * This is a factory method for creating actors. * - *

The following example demonstrates its usage:

+ * The following example demonstrates its usage: * - *
+   * {{{
    * import scala.actors.Actor._
    * ...
    * val a = actor {
    *   ...
    * }
-   * 
+ * }}} * * @param body the code block to be executed by the newly created actor * @return the newly created actor. Note that it is automatically started. @@ -141,14 +141,12 @@ object Actor extends Combinators { } /** - *

* This is a factory method for creating actors whose - * body is defined using a Responder. - *

+ * body is defined using a `Responder`. * - *

The following example demonstrates its usage:

+ * The following example demonstrates its usage: * - *
+   * {{{
    * import scala.actors.Actor._
    * import Responder.exec
    * ...
@@ -158,9 +156,9 @@ object Actor extends Combinators {
    *     if exec(println("result: "+res))
    *   } yield {}
    * }
-   * 
+ * }}} * - * @param body the Responder to be executed by the newly created actor + * @param body the `Responder` to be executed by the newly created actor * @return the newly created actor. Note that it is automatically started. */ def reactor(body: => Responder[Unit]): Actor = { @@ -274,20 +272,18 @@ object Actor extends Combinators { def mailboxSize: Int = rawSelf.mailboxSize /** - *

* Converts a synchronous event-based operation into - * an asynchronous Responder. - *

+ * an asynchronous `Responder`. * - *

The following example demonstrates its usage:

+ * The following example demonstrates its usage: * - *
+   * {{{
    * val adder = reactor {
    *   for {
    *     _ <- respondOn(react) { case Add(a, b) => reply(a+b) }
    *   } yield {}
    * }
-   * 
+ * }}} */ def respondOn[A, B](fun: PartialFunction[A, Unit] => Nothing): PartialFunction[A, B] => Responder[B] = diff --git a/src/actors/scala/actors/Channel.scala b/src/actors/scala/actors/Channel.scala index e40a804e4a..b3772c6109 100644 --- a/src/actors/scala/actors/Channel.scala +++ b/src/actors/scala/actors/Channel.scala @@ -11,19 +11,18 @@ package scala.actors -/**

- * This class is used to pattern match on values that were sent - * to some channel Chann by the current - * actor self. - *

- *

- * The following example demonstrates its usage: - *

+/**
+ *  This class is used to pattern match on values that were sent
+ *  to some channel Chann by the current
+ *  actor self.
+ *
+ *  The following example demonstrates its usage:
+ *  {{{
  *  receive {
  *    case Chan1 ! msg1 => ...
  *    case Chan2 ! msg2 => ...
  *  }
- *  
+ * }}} * * @author Philipp Haller */ diff --git a/src/actors/scala/actors/remote/RemoteActor.scala b/src/actors/scala/actors/remote/RemoteActor.scala index 860ff3bfe3..78361ec0fb 100644 --- a/src/actors/scala/actors/remote/RemoteActor.scala +++ b/src/actors/scala/actors/remote/RemoteActor.scala @@ -13,33 +13,30 @@ package scala.actors package remote -/**

- * This object provides methods for creating, registering, and - * selecting remotely accessible actors. - *

- *

- * A remote actor is typically created like this: - *

+/**
+ *  This object provides methods for creating, registering, and
+ *  selecting remotely accessible actors.
+ *
+ *  A remote actor is typically created like this:
+ *  {{{
  *  actor {
  *    alive(9010)
  *    register('myName, self)
  *
  *    // behavior
  *  }
- *  
- *

- * It can be accessed by an actor running on a (possibly) - * different node by selecting it in the following way: - *

+ *  }}}
+ *  It can be accessed by an actor running on a (possibly)
+ *  different node by selecting it in the following way:
+ *  {{{
  *  actor {
  *    // ...
- *    val c = select(Node("127.0.0.1", 9010), 'myName)
+ *    val c = select(Node("127.0.0.1", 9010), 'myName)
  *    c ! msg
  *    // ...
  *  }
- *  
+ * }}} * - * @version 0.9.18 * @author Philipp Haller */ object RemoteActor { -- cgit v1.2.3