Class

gopher.channels.Channel

Filtered

Related Doc: package Channel

Permalink

class Filtered extends Channel.Filtered with Channel[A] with DoneSignalDelegate[A]

Linear Supertypes
Channel.DoneSignalDelegate[A], Channel[A], CloseableInput[A], DoneProvider[Unit], InputOutput[A], Output[A], Channel.Filtered, Input[A], GopherAPIProvider, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Filtered
  2. DoneSignalDelegate
  3. Channel
  4. CloseableInput
  5. DoneProvider
  6. InputOutput
  7. Output
  8. Filtered
  9. Input
  10. GopherAPIProvider
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Filtered(p: (A) ⇒ Boolean)

    Permalink

Type Members

  1. type <~ = A

    Permalink
    Definition Classes
    Input
  2. trait DoneSignalDelegate[T] extends CloseableInput[T]

    Permalink
    Definition Classes
    CloseableInput
  3. class Filtered extends Channel.Filtered with Channel[A] with DoneSignalDelegate[A]

    Permalink
    Definition Classes
    Channel
  4. class FutureMapped[B] extends Input[B]

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

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

    Permalink
    Definition Classes
    Input
  7. type done = Unit

    Permalink
    Definition Classes
    DoneProvider
  8. type read = A

    Permalink
    Definition Classes
    Input
  9. type write = A

    Permalink
    Definition Classes
    Output
  10. type writeExp[X] = A

    Permalink
    Definition Classes
    Output
  11. type ~> = A

    Permalink
    Definition Classes
    Output

Value Members

  1. macro def !(a: A): Unit

    Permalink

    shortcut for blocking write.

    shortcut for blocking write.

    Definition Classes
    Output
  2. final def !=(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. macro def <~(a: A): Output[A]

    Permalink

    shortcut for blocking write.

    shortcut for blocking write.

    Definition Classes
    Output
  5. final def ==(arg0: Any): Boolean

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

    Permalink

    synonym for read.

    synonym for read.

    Definition Classes
    Input
  7. macro def afold[S, B](s0: S)(f: (S, A) ⇒ 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
  8. def afoldAsync[S, B](s0: S)(f: (S, A) ⇒ Future[S])(implicit ec: ExecutionContext): Future[S]

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

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

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

    Permalink
    Definition Classes
    Input
  12. def api: GopherAPI

    Permalink

    instance of gopher API

    instance of gopher API

    Definition Classes
    FilteredInputGopherAPIProvider
  13. def append(other: Input[A]): Input[A]

    Permalink

    when the first channel is exhaused, read from second.

    when the first channel is exhaused, read from second.

    Definition Classes
    Input
  14. def applyDone[B](cr: ContRead[Unit, B]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CloseableInput
  15. 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.

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

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

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

    Permalink

    return feature which contains sequence from first n elements.

    return feature which contains sequence from first n elements.

    Definition Classes
    Input
  19. def awrite(a: A): Future[A]

    Permalink
    Definition Classes
    Output
  20. def awriteAll[C <: Iterable[A]](c: C): Future[Unit]

    Permalink
    Definition Classes
    Output
  21. 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

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

    Definition Classes
    FilteredInput
  22. def cbwrite[B](f: (ContWrite[A, B]) ⇒ Option[(A, Future[Continuated[B]])], ft: FlowTermination[B]): Unit

    Permalink

    apply f and send result to channels processor.

    apply f and send result to channels processor.

    Definition Classes
    FilteredOutput
  23. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def close(): Unit

    Permalink
    Definition Classes
    FilteredChannel
  25. lazy val closeless: Input[A]

    Permalink

    returns

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

    Definition Classes
    Input
  26. val done: Input[Unit]

    Permalink
    Definition Classes
    DoneSignalDelegateDoneProvider
  27. def dup(): (Input[A], Input[A])

    Permalink

    duplicate input

    duplicate input

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

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

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

    Permalink
    Definition Classes
    ChannelCloseableInputInput
  31. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Input
  35. macro def fold[S, B](s0: S)(f: (S, A) ⇒ 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
  36. 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.

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

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

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

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

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

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

    Permalink
    Definition Classes
    CloseableInputInput
  43. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  46. def or(other: Input[A]): Input[A]

    Permalink

    synonim for non-deteremenistics choice.

    synonim for non-deteremenistics choice.

    Definition Classes
    Input
  47. def pam[B](g: (B) ⇒ A): Output[B]

    Permalink

    alias for premap

    alias for premap

    Definition Classes
    Output
  48. def premap[C](g: (C) ⇒ A): Output[C]

    Permalink

    before passing value to output, apply g to one.

    before passing value to output, apply g to one.

    Definition Classes
    Output
  49. def prepend(a: A): Input[A]

    Permalink
    Definition Classes
    Input
  50. macro def read: A

    Permalink

    read object from channel.

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

    Definition Classes
    Input
  51. def seq: AnyRef { def flatMap[B](g: A => gopher.channels.Input[B]): gopher.channels.Input[B] }

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  54. def unfold[S](s: S)(f: (S) ⇒ (S, A)): Unit

    Permalink
    Definition Classes
    Output
  55. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    Input
  59. 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") }

    Definition Classes
    Input
  60. def withOutputTimeouts(timeout: FiniteDuration): (Output[A], Input[FiniteDuration])

    Permalink

    provide pair from Output and Input (ready, timeouts) such that writing to ready will case writing to output and if it was not completed during timeout than appropriative duration will be availabe in timeouts input.

    provide pair from Output and Input (ready, timeouts) such that writing to ready will case writing to output and if it was not completed during timeout than appropriative duration will be availabe in timeouts input.

    val (chReady, chTimeouts) = ch withOutputTimeouts (5 seconds) select.forever { case x: chReady.write if (x==somethingToWrite) => Console.println(s" ${x} send") case t: chTimeouts.read => Console.println(s"timeout during writing") }

    Definition Classes
    Output
  61. macro def write(a: A): A

    Permalink

    'blocking' write of 'a' to channel.

    'blocking' write of 'a' to channel. Note, that this method can be called only inside 'go' or 'async' blocks.

    Definition Classes
    Output
  62. macro def writeAll[C <: Iterable[A]](it: C): Unit

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

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

    Permalink
    Definition Classes
    Input
  65. def |(other: Input[A]): Input[A]

    Permalink

    return input merged with 'other'.

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

    Definition Classes
    Input

Inherited from Channel.DoneSignalDelegate[A]

Inherited from Channel[A]

Inherited from CloseableInput[A]

Inherited from DoneProvider[Unit]

Inherited from InputOutput[A]

Inherited from Output[A]

Inherited from Channel.Filtered

Inherited from Input[A]

Inherited from GopherAPIProvider

Inherited from AnyRef

Inherited from Any

Ungrouped