Packages

t

gopher.channels

CloseableInputOutput

trait CloseableInputOutput[A, B] extends InputOutput[A, B] with CloseableInput[B]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CloseableInputOutput
  2. CloseableInput
  3. DoneProvider
  4. InputOutput
  5. Output
  6. Input
  7. GopherAPIProvider
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait DoneSignalDelegate[T] extends CloseableInput[T]
    Definition Classes
    CloseableInput
  2. type <~ = B
    Definition Classes
    Input
  3. class CompositionIOC[C] extends CompositionIO[C] with DoneSignalDelegate[C] with CloseableInputOutput[A, C]
  4. class FilteredIOC extends FilteredIO with DoneSignalDelegate[B] with CloseableInputOutput[A, B]
  5. class MappedIOC[C] extends MappedIO[C] with DoneSignalDelegate[C] with CloseableInputOutput[A, C]
  6. type done = Unit
    Definition Classes
    DoneProvider
  7. type read = B
    Definition Classes
    Input
  8. type write = A
    Definition Classes
    Output
  9. type writeExp[X] = A
    Definition Classes
    Output
  10. type ~> = A
    Definition Classes
    Output
  11. class Filtered extends Input[A]
    Definition Classes
    Input
  12. class FutureMapped[B] extends Input[B]
    Definition Classes
    Input
  13. class Mapped[B] extends Input[B]
    Definition Classes
    Input
  14. case class Read(value: A) extends Product with Serializable
    Definition Classes
    Input
  15. trait CbwriteDelegate extends Output[A]
    Definition Classes
    InputOutput
  16. class CompositionIO[C] extends InputOutput[A, C]
    Definition Classes
    InputOutput
  17. class FilteredIO extends Filtered with CbwriteDelegate with InputOutput[A, B]
    Definition Classes
    InputOutput
  18. class MappedIO[C] extends Mapped[C] with CbwriteDelegate with InputOutput[A, C]
    Definition Classes
    InputOutput

Abstract Value Members

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

    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
    Input
  3. abstract def cbwrite[B](f: (ContWrite[A, B]) => Option[(A, Future[Continuated[B]])], ft: FlowTermination[B]): Unit

    apply f and send result to channels processor.

    apply f and send result to channels processor.

    Definition Classes
    Output
  4. abstract val done: Input[Unit]
    Definition Classes
    DoneProvider

Concrete Value Members

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

    shortcut for blocking write.

    shortcut for blocking write.

    Definition Classes
    Output
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. macro def <~(a: A): Output[A]

    shortcut for blocking write.

    shortcut for blocking write.

    Definition Classes
    Output
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. macro def ?: B

    synonym for read.

    synonym for read.

    Definition Classes
    Input
  7. macro def afold[S, B](s0: S)(f: (S, B) => 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.

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

    when the first channel is exhaused, read from second.

    when the first channel is exhaused, read from second.

    Definition Classes
    Input
  13. def applyDone[B](cr: ContRead[Unit, B]): Unit
    Attributes
    protected
    Definition Classes
    CloseableInput
  14. def aread: Future[B]

    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
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def async: AnyRef { ... /* 3 definitions in type refinement */ }
    Definition Classes
    Input
  17. def atake(n: Int): Future[IndexedSeq[B]]

    return feature which contains sequence from first n elements.

    return feature which contains sequence from first n elements.

    Definition Classes
    Input
  18. def awrite(a: A): Future[A]
    Definition Classes
    Output
  19. def awriteAll[C <: Iterable[A]](c: C): Future[Unit]
    Definition Classes
    Output
  20. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  21. lazy val closeless: Input[B]

    returns

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

    Definition Classes
    Input
  22. def compose[C](other: InputOutput[B, C]): CloseableInputOutput[A, C]
    Definition Classes
    CloseableInputOutputInputOutput
  23. def dup(): (Input[B], Input[B])

    duplicate input

    duplicate input

    Definition Classes
    Input
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  26. def filter(p: (B) => Boolean): CloseableInputOutput[A, B]
  27. def flatFold(fun: (Input[B], B) => Input[B]): Input[B]
    Definition Classes
    Input
  28. def flatMap[B](g: (B) => Input[B]): Input[B]
    Definition Classes
    Input
  29. def flatMapOp[B](g: (B) => Input[B])(op: (Input[B], Input[B]) => Input[B]): Input[B]
    Definition Classes
    Input
  30. macro def fold[S, B](s0: S)(f: (S, B) => S): S

    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
  31. macro def foreach(f: (B) => 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.

    Definition Classes
    Input
  32. def foreachAsync(f: (B) => Future[Unit])(implicit ec: ExecutionContext): Future[Unit]
    Definition Classes
    Input
  33. def foreachSync(f: (B) => Unit): Future[Unit]
    Definition Classes
    Input
  34. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. def map[C](g: (B) => C): CloseableInputOutput[A, C]
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  41. def or(other: Input[B]): Input[B]

    synonim for non-deteremenistics choice.

    synonim for non-deteremenistics choice.

    Definition Classes
    Input
  42. def pam[B](g: (B) => A): Output[B]

    alias for premap

    alias for premap

    Definition Classes
    Output
  43. def premap[C](g: (C) => A): Output[C]

    before passing value to output, apply g to one.

    before passing value to output, apply g to one.

    Definition Classes
    Output
  44. def prepend(a: B): Input[B]
    Definition Classes
    Input
  45. macro def read: B

    read object from channel.

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

    Definition Classes
    Input
  46. def seq: AnyRef { def flatMap[B](g: B => gopher.channels.Input[B]): gopher.channels.Input[B] }
    Definition Classes
    Input
  47. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  48. def timedAread(waitTime: FiniteDuration): Future[B]
    Definition Classes
    Input
  49. def toString(): String
    Definition Classes
    AnyRef → Any
  50. def unfold[S](s: S)(f: (S) => (S, A)): Unit
    Definition Classes
    Output
  51. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. def withFilter(p: (B) => Boolean): Input[B]
    Definition Classes
    Input
  55. def withInputTimeouts(timeout: FiniteDuration): (Input[B], 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") }

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

    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
  57. macro def write(a: A): A

    '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
  58. macro def writeAll[C <: Iterable[A]](it: C): Unit
    Definition Classes
    Output
  59. def zip[B](x: Input[B]): Input[(B, B)]
    Definition Classes
    Input
  60. def zip[B](x: Iterable[B]): Input[(B, B)]
    Definition Classes
    Input
  61. def |(other: Input[B]): Input[B]

    return input merged with 'other'.

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

    Definition Classes
    Input
  62. def |>[C](other: InputOutput[B, C]): CloseableInputOutput[A, C]

    Synonym for this.compose(other)

    Synonym for this.compose(other)

    Definition Classes
    CloseableInputOutputInputOutput

Deprecated Value Members

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

Inherited from CloseableInput[B]

Inherited from DoneProvider[Unit]

Inherited from InputOutput[A, B]

Inherited from Output[A]

Inherited from Input[B]

Inherited from GopherAPIProvider

Inherited from AnyRef

Inherited from Any

Ungrouped