Class/Object

gopher.channels

ZippedInput

Related Docs: object ZippedInput | package channels

Permalink

class ZippedInput[A, B] extends Input[(A, B)]

Linear Supertypes
Input[(A, B)], GopherAPIProvider, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZippedInput
  2. Input
  3. GopherAPIProvider
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ZippedInput(api: GopherAPI, inputA: Input[A], inputB: Input[B])

    Permalink

Type Members

  1. type <~ = (A, B)

    Permalink
    Definition Classes
    Input
  2. class Filtered extends Input[A]

    Permalink
    Definition Classes
    Input
  3. class FutureMapped[B] extends Input[B]

    Permalink
    Definition Classes
    Input
  4. class Mapped[B] extends Input[B]

    Permalink
    Definition Classes
    Input
  5. case class Read(value: A) extends Product with Serializable

    Permalink
    Definition Classes
    Input
  6. type read = (A, B)

    Permalink
    Definition Classes
    Input

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, B)

    Permalink

    synonym for read.

    synonym for read.

    Definition Classes
    Input
  5. macro def afold[S, B](s0: S)(f: (S, (A, B)) ⇒ S): Future[S]

    Permalink

    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.

    Definition Classes
    Input
  6. def afoldAsync[S, B](s0: S)(f: (S, (A, B)) ⇒ Future[S])(implicit ec: ExecutionContext): Future[S]

    Permalink
    Definition Classes
    Input
  7. def afoldSync[S, B](s0: S)(f: (S, (A, B)) ⇒ S): Future[S]

    Permalink
    Definition Classes
    Input
  8. macro def aforeach(f: ((A, B)) ⇒ Unit): Future[Unit]

    Permalink
    Definition Classes
    Input
  9. def amap[B](g: ((A, B)) ⇒ Future[B]): Input[B]

    Permalink
    Definition Classes
    Input
  10. val api: GopherAPI

    Permalink

    instance of gopher API

    instance of gopher API

    Definition Classes
    ZippedInputInputGopherAPIProvider
  11. def append(other: Input[(A, B)]): Input[(A, B)]

    Permalink

    when the first channel is exhaused, read from second.

    when the first channel is exhaused, read from second.

    Definition Classes
    Input
  12. def aread: Future[(A, B)]

    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.

    Definition Classes
    Input
  13. final def asInstanceOf[T0]: T0

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

    Permalink
    Definition Classes
    Input
  15. def atake(n: Int): Future[IndexedSeq[(A, B)]]

    Permalink

    return feature which contains sequence from first n elements.

    return feature which contains sequence from first n elements.

    Definition Classes
    Input
  16. def cbread[C](f: (ContRead[(A, B), C]) ⇒ Option[(In[(A, B)]) ⇒ Future[Continuated[C]]], flwt: FlowTermination[C]): Unit

    Permalink

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

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

    Definition Classes
    ZippedInputInput
  17. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. lazy val closeless: Input[(A, B)]

    Permalink

    returns

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

    Definition Classes
    Input
  19. def dup(): (Input[(A, B)], Input[(A, B)])

    Permalink

    duplicate input

    duplicate input

    Definition Classes
    Input
  20. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    Input
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def flatFold(fun: (Input[(A, B)], (A, B)) ⇒ Input[(A, B)]): Input[(A, B)]

    Permalink
    Definition Classes
    Input
  25. def flatMap[B](g: ((A, B)) ⇒ Input[B]): Input[B]

    Permalink
    Definition Classes
    Input
  26. def flatMapOp[B](g: ((A, B)) ⇒ Input[B])(op: (Input[B], Input[B]) ⇒ Input[B]): Input[B]

    Permalink
    Definition Classes
    Input
  27. macro def fold[S, B](s0: S)(f: (S, (A, B)) ⇒ S): S

    Permalink

    fold opeations, available inside async bloc.

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

    Definition Classes
    Input
  28. macro def foreach(f: ((A, B)) ⇒ 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.

    Definition Classes
    Input
  29. def foreachAsync(f: ((A, B)) ⇒ Future[Unit])(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    Input
  30. def foreachSync(f: ((A, B)) ⇒ Unit): Future[Unit]

    Permalink
    Definition Classes
    Input
  31. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    Input
  35. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  38. def or(other: Input[(A, B)]): Input[(A, B)]

    Permalink

    synonim for non-deteremenistics choice.

    synonim for non-deteremenistics choice.

    Definition Classes
    Input
  39. val pairs: ConcurrentLinkedQueue[(A, B)]

    Permalink
  40. def prepend(a: (A, B)): Input[(A, B)]

    Permalink
    Definition Classes
    Input
  41. macro def read: (A, B)

    Permalink

    read object from channel.

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

    Definition Classes
    Input
  42. val readers: ConcurrentLinkedQueue[ContRead[(A, B), _]]

    Permalink
  43. def seq: AnyRef { def flatMap[B](g: ((A, B)) => gopher.channels.Input[B]): gopher.channels.Input[B] }

    Permalink
    Definition Classes
    Input
  44. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

    Permalink
    Definition Classes
    Input
  50. def withInputTimeouts(timeout: FiniteDuration): (Input[(A, B)], 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") }

    Definition Classes
    Input
  51. def zip[B](x: Input[B]): Input[((A, B), B)]

    Permalink
    Definition Classes
    Input
  52. def zip[B](x: Iterable[B]): Input[((A, B), B)]

    Permalink
    Definition Classes
    Input
  53. def |(other: Input[(A, B)]): Input[(A, B)]

    Permalink

    return input merged with 'other'.

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

    Definition Classes
    Input

Inherited from Input[(A, B)]

Inherited from GopherAPIProvider

Inherited from AnyRef

Inherited from Any

Ungrouped