Trait/Object

gopher.channels

Input

Related Docs: object Input | package channels

Permalink

trait Input[A] extends AnyRef

Entity, from which we can read objects of type A.

Self Type
Input[A]
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Input
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type <~ = A

    Permalink
  2. type read = A

    Permalink

Abstract Value Members

  1. abstract def api: GopherAPI

    Permalink

    instance of gopher API

  2. abstract def cbread[B](f: (ContRead[A, B]) ⇒ Option[(In[A]) ⇒ Future[Continuated[B]]], ft: FlowTermination[B]): Unit

    Permalink

    apply f, when input will be ready and send result to API processor

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. macro def ?: A

    Permalink

    synonym for read.

  5. macro def aforeach(f: (A) ⇒ Unit): Future[Unit]

    Permalink
  6. def aread: Future[A]

    Permalink

    async version of read.

    async version of read. Immediatly return future, which will contains result of read or failur with StreamClosedException in case of stream is closed.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def async: AnyRef { ... /* 3 definitions in type refinement */ }

    Permalink
  9. def atake(n: Int): Future[IndexedSeq[A]]

    Permalink

    return feature which contains sequence from first n elements.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def dup(): (Input[A], Input[A])

    Permalink

    duplicate input

  12. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def filter(p: (A) ⇒ Boolean): Input[A]

    Permalink
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. macro def foreach(f: (A) ⇒ Unit): Unit

    Permalink

    run f each time when new object is arrived.

    run f each time when new object is arrived. Ended when input closes.

    must be inside go/async/action block.

  17. def foreachAsync(f: (A) ⇒ Future[Unit])(implicit ec: ExecutionContext): Future[Unit]

    Permalink
  18. def foreachSync(f: (A) ⇒ Unit): Future[Unit]

    Permalink
  19. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  22. def map[B](g: (A) ⇒ B): Input[B]

    Permalink
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  26. macro def read: A

    Permalink

    read object from channel.

    read object from channel. Must be situated inside async/go/action block.

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

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def withFilter(p: (A) ⇒ Boolean): Input[A]

    Permalink
  33. def withInputTimeouts(timeout: FiniteDuration): (Input[A], Input[FiniteDuration])

    Permalink

    return pair of inputs (ready, timeouts), such that when you read from ready you receive element from this and if during reading you wait more than specified timeout, than timeout message is appear in timeouts

    return pair of inputs (ready, timeouts), such that when you read from ready you receive element from this and if during reading you wait more than specified timeout, than timeout message is appear in timeouts

    val (inReady, inTimeouts) = in withInputTimeouts (10 seconds) select.forever { case x: inReady.read => Console.println(s"received value ${value}") case x: inTimeouts.read => Console.println(s"timeout occured") }

  34. def zip[B](x: Input[B]): Input[(A, B)]

    Permalink
  35. def zip[B](x: Iterable[B]): Input[(A, B)]

    Permalink
  36. def |(other: Input[A]): Input[A]

    Permalink

    return input merged with 'other'.

    return input merged with 'other'. (i.e. non-determenistics choice)

Inherited from AnyRef

Inherited from Any

Ungrouped