molecule.io

WInput

abstract class WInput[+A] extends AnyRef

Input that produces one value at a time which may result from selecting on multiple inputs.

Source
WInput.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. WInput
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WInput()

Abstract Value Members

  1. abstract def extract(t: UThreadContext, k: (A) ⇒ Unit, h: (Signal) ⇒ Unit): Unit

    Attributes
    protected[io]
  2. abstract def signal: Option[Signal]

    Returns some signal if the input is closed.

    Returns some signal if the input is closed.

    returns

    Some(signal) if the input contain no more elements, None otherwise.

  3. abstract def test(thread: UThread): Promise[WInput[A]]

    Test the input stream (see stream.

    Test the input stream (see stream.TestableStream).

    Attributes
    protected[io]

Concrete 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. def <%+%>[B](right: WInput[B]): WInput[Either[A, B]]

    Create a selector that reads a value on either input unless one of them is closed.

    Create a selector that reads a value on either input unless one of them is closed. If the one of them is closed an SigInput will be raised in the enclosing scope.

  5. def <%+>[B](right: WInput[B]): WInput[Either[A, B]]

    Create a selector that reads a value on either input unless the left one is closed.

    Create a selector that reads a value on either input unless the left one is closed. If the left input is closed an SigInput will be raised in the enclosing scope.

  6. def <+%>[B](right: WInput[B]): WInput[Either[A, B]]

    Create a selector that reads a value on either input unless the right one is closed.

    Create a selector that reads a value on either input unless the right one is closed. If the right input is closed an SigInput will be raised in the enclosing scope.

  7. def <+>[B](right: WInput[B]): WInput[Either[A, B]]

    Create a selector that reads a value on either input unless they are both closed.

    Create a selector that reads a value on either input unless they are both closed. If both input are closed an SigInput will be raised in the enclosing scope.

  8. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. abstract def foreach(f: (A) ⇒ IO[Unit]): Unit

    [use case] Applies a function f to all elements of this input.

    [use case]

    Applies a function f to all elements of this input.

    f

    the function that is applied for its side-effect to every element. The result of function f is discarded.

  16. def foreach[U](f: (A) ⇒ IO[U]): IO[Unit]

    Applies a function f to all elements of this input.

    Applies a function f to all elements of this input.

    U

    the type parameter describing the result of function f. This result will always be ignored. Typically U is Unit, but this is not necessary.

    f

    the function that is applied for its side-effect to every element. The result of function f is discarded.

  17. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def isClosed: Boolean

    Tests whether this input is closed and returns the signal.

    Tests whether this input is closed and returns the signal.

    returns

    Some(signal) if the input contain no more elements, None otherwise.

  20. def isEmpty: Boolean

    Tests whether this input is empty (or closed).

    Tests whether this input is empty (or closed).

    returns

    true if the input contain no more elements, false otherwise.

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  25. def read(): IO[A]

    Read a single value or raise the signal if the input is closed

    Read a single value or raise the signal if the input is closed

    returns

    the next element of this input.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any