trait Output[A] extends GopherAPIProvider
- Alphabetic
- By Inheritance
- Output
- GopherAPIProvider
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
api: GopherAPI
- Definition Classes
- Output → GopherAPIProvider
-
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.
Concrete Value Members
-
macro
def
!(a: A): Unit
shortcut for blocking write.
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
macro
def
<~(a: A): Output[A]
shortcut for blocking write.
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def awrite(a: A): Future[A]
- def awriteAll[C <: Iterable[A]](c: C): Future[Unit]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
pam[B](g: (B) ⇒ A): Output[B]
alias for premap
-
def
premap[C](g: (C) ⇒ A): Output[C]
before passing value to output, apply g to one.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def unfold[S](s: S)(f: (S) ⇒ (S, A)): Unit
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withOutputTimeouts(timeout: FiniteDuration): (Output[A], Input[FiniteDuration])
provide pair from Output and Input
(ready, timeouts)
such that writing toready
will case writing tooutput
and if it was not completed during
timeoutstimeout
than appropriative duration will be availabe ininput.
provide pair from Output and Input
(ready, timeouts)
such that writing toready
will case writing tooutput
and if it was not completed during
timeoutstimeout
than appropriative duration will be availabe ininput.
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") }
-
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.
- macro def writeAll[C <: Iterable[A]](it: C): Unit