Packages

trait Input[A] extends GopherAPIProvider

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Input
  2. GopherAPIProvider
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type <~ = A
  2. class Filtered extends Input[A]
  3. class FutureMapped[B] extends Input[B]
  4. class Mapped[B] extends Input[B]
  5. case class Read(value: A) extends Product with Serializable
  6. type read = A

Abstract Value Members

  1. abstract def api: GopherAPI

    instance of gopher API

    instance of gopher API

    Definition Classes
    InputGopherAPIProvider
  2. abstract def cbread[B](f: (ContRead[A, B]) => Option[(In[A]) => Future[Continuated[B]]], ft: FlowTermination[B]): Unit

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

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. macro def ?: A

    synonym for read.

  5. macro def afold[S, B](s0: S)(f: (S, A) => S): Future[S]

    async incarnation of fold.

    async incarnation of fold. Fold return future, which successed when channel is closed. Operations withing fold applyed on result on each other, starting with s0. val fsum = ch.afold(0){ (s, n) => s+n } Here in fsum will be future with value: sum of all elements in channel until one has been closed.

  6. def afoldAsync[S, B](s0: S)(f: (S, A) => Future[S])(implicit ec: ExecutionContext): Future[S]
  7. def afoldSync[S, B](s0: S)(f: (S, A) => S): Future[S]
  8. macro def aforeach(f: (A) => Unit): Future[Unit]
  9. def amap[B](g: (A) => Future[B]): Input[B]
  10. def append(other: Input[A]): Input[A]

    when the first channel is exhaused, read from second.

  11. def aread: Future[A]

    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.

  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def async: AnyRef { ... /* 3 definitions in type refinement */ }
  14. def atake(n: Int): Future[IndexedSeq[A]]

    return feature which contains sequence from first n elements.

  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  16. lazy val closeless: Input[A]

    returns

    Input without close event: i.e. reading from closeless channel after channel close will wait forever instead throwing CloseChannelException

  17. def dup(): (Input[A], Input[A])

    duplicate input

  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. def filter(p: (A) => Boolean): Input[A]
  21. def flatFold(fun: (Input[A], A) => Input[A]): Input[A]
  22. def flatMap[B](g: (A) => Input[B]): Input[B]
  23. def flatMapOp[B](g: (A) => Input[B])(op: (Input[B], Input[B]) => Input[B]): Input[B]
  24. macro def fold[S, B](s0: S)(f: (S, A) => S): S

    fold opeations, available inside async bloc.

    fold opeations, available inside async bloc. go { val sum = ch.fold(0){ (s,n) => s+n } }

  25. macro def foreach(f: (A) => Unit): Unit

    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.

  26. def foreachAsync(f: (A) => Future[Unit])(implicit ec: ExecutionContext): Future[Unit]
  27. def foreachSync(f: (A) => Unit): Future[Unit]
  28. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def map[B](g: (A) => B): Input[B]
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. def or(other: Input[A]): Input[A]

    synonim for non-deteremenistics choice.

  36. def prepend(a: A): Input[A]
  37. macro def read: A

    read object from channel.

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

  38. def seq: AnyRef { def flatMap[B](g: A => gopher.channels.Input[B]): gopher.channels.Input[B] }
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def timedAread(waitTime: FiniteDuration): Future[A]
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. def withFilter(p: (A) => Boolean): Input[A]
  46. def withInputTimeouts(timeout: FiniteDuration): (Input[A], Input[FiniteDuration])

    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") }

  47. def zip[B](x: Input[B]): Input[(A, B)]
  48. def zip[B](x: Iterable[B]): Input[(A, B)]
  49. def |(other: Input[A]): Input[A]

    return input merged with 'other'.

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from GopherAPIProvider

Inherited from AnyRef

Inherited from Any

Ungrouped