molecule.examples.io.choice

TimerChoice

object TimerChoice extends ProcessType1x1[Int, Int, Unit]

Illustrates the implementation of a readWithin methods that read a value on one stream unless a timeout occurred.

The application terminates when the input stream is closed. This uses a variation of the choice operator noted <%+>, which closes the resulting stream if its left input is closed. In this case the read() call in the readWithin method will thow a user-level exception since no more data is available. This user-level exception handler defined outside the readWithin method will then simply shutdown the process.

Linear Supertypes
ProcessType1x1[Int, Int, Unit], ProcessType[Unit], ProcessType1x1[Int, Int, Unit], (IChan[Int], OChan[Int]) ⇒ Process1x1[Int, Int, Unit], ProcessType, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TimerChoice
  2. ProcessType1x1
  3. ProcessType
  4. ProcessType1x1
  5. Function2
  6. ProcessType
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def adapt[C, D](f1: (IChan[C]) ⇒ IChan[Int], f2: (OChan[D]) ⇒ OChan[Int]): ProcessType1x1[C, D, Unit]

    Definition Classes
    ProcessType1x1
  7. def apply(ichan: IChan[Int], ochan: OChan[Int]): Process1x1[Int, Int, Unit]

    Definition Classes
    ProcessType1x1 → ProcessType1x1 → Function2
  8. def apply(input: Input[Int], output: Output[Int]): IO[Process1x1[Int, Int, Unit]]

    Definition Classes
    ProcessType1x1
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def curried: (IChan[Int]) ⇒ (OChan[Int]) ⇒ Process1x1[Int, Int, Unit]

    Definition Classes
    Function2
    Annotations
    @unspecialized()
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def handover(process: Process[Unit]): IO[Nothing]

    Definition Classes
    ProcessType
  17. def handover(process: IO[Process[Unit]]): IO[Nothing]

    Definition Classes
    ProcessType
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def main(args: Array[String]): Unit

  21. def main(i1: Input[Int], o1: Output[Int]): IO[Unit]

    Definition Classes
    TimerChoice → ProcessType1x1
  22. def name: String

    Definition Classes
    ProcessType
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. def shutdown(result: Unit): IO[Nothing]

    Attributes
    protected
    Definition Classes
    ProcessType
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    Function2 → AnyRef → Any
  29. def tupled: ((IChan[Int], OChan[Int])) ⇒ Process1x1[Int, Int, Unit]

    Definition Classes
    Function2
    Annotations
    @unspecialized()
  30. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ProcessType1x1[Int, Int, Unit]

Inherited from ProcessType[Unit]

Inherited from ProcessType1x1[Int, Int, Unit]

Inherited from (IChan[Int], OChan[Int]) ⇒ Process1x1[Int, Int, Unit]

Inherited from ProcessType

Inherited from AnyRef

Inherited from Any

Ungrouped