molecule.examples.io.misc

InefficientGenerator

object InefficientGenerator extends ProcessType0x1[Int, Unit]

Shows two ways to generate input streams.

The bad is to generate data out of the blue inside a process. This is very inefficient because messages are generated one at a time.

The good way is to use one of the many constructors and combinators in IChan. @see molecule.channel.sys.IChan

Linear Supertypes
ProcessType0x1[Int, Unit], ProcessType[Unit], ProcessType0x1[Int, Unit], (OChan[Int]) ⇒ Process0x1[Int, Unit], ProcessType, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InefficientGenerator
  2. ProcessType0x1
  3. ProcessType
  4. ProcessType0x1
  5. Function1
  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[B](f: (OChan[B]) ⇒ OChan[Int]): ProcessType0x1[B, Unit]

    Definition Classes
    ProcessType0x1
  7. def andThen[A](g: (Process0x1[Int, Unit]) ⇒ A): (OChan[Int]) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  8. def apply(ochan: OChan[Int]): Process0x1[Int, Unit]

    Definition Classes
    ProcessType0x1 → ProcessType0x1 → Function1
  9. def apply(output: Output[Int]): IO[Process0x1[Int, Unit]]

    Definition Classes
    ProcessType0x1
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def compose[A](g: (A) ⇒ OChan[Int]): (A) ⇒ Process0x1[Int, Unit]

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    ProcessType
  19. def hashCode(): Int

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

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

  22. def main(out: Output[Int]): IO[Unit]

    Definition Classes
    InefficientGenerator → ProcessType0x1
  23. def name: String

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

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

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

    Definition Classes
    AnyRef
  27. def repeat[A](n: Int)(f: (Int) ⇒ IO[A]): IO[Unit]

  28. def shutdown(result: Unit): IO[Nothing]

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

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  31. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ProcessType0x1[Int, Unit]

Inherited from ProcessType[Unit]

Inherited from ProcessType0x1[Int, Unit]

Inherited from (OChan[Int]) ⇒ Process0x1[Int, Unit]

Inherited from ProcessType

Inherited from AnyRef

Inherited from Any

Ungrouped