trait InPort[+T] extends channel.InPort[T]
Alt-capable input port
- Alphabetic
- By Inheritance
- InPort
- InPort
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
?[U](f: (T) ⇒ U): U
Block until a value t is available for input, then return
f(
t)
-- equivalent tof(?())
.Block until a value t is available for input, then return
f(
t)
-- equivalent tof(?())
.- Definition Classes
- InPort
-
abstract
def
?(): T
Block until a value is available for input, then read and return it.
Block until a value is available for input, then read and return it.
- Definition Classes
- InPort
-
abstract
def
??[U](f: (T) ⇒ U): U
Block until a value t is available for input, then return
f(
t)
.Block until a value t is available for input, then return
f(
t)
. If the inport is provided by a synchronized channel then synchronisation with the termination of the sender's!
is at the termination of the computation off(
t)
(this is sometimes called an extended rendezvous).- Definition Classes
- InPort
-
abstract
def
canInput: Boolean
Returns
false
if no further input will be supplied by this port.Returns
false
if no further input will be supplied by this port. Returningtrue
is not a guarantee that further input will be supplied.- Definition Classes
- InPort
-
abstract
def
closeIn(): Unit
Signal that no further attempts will be made to input from the invoking thread: idempotent
Signal that no further attempts will be made to input from the invoking thread: idempotent
- Definition Classes
- InPort
-
abstract
def
inPortState: PortState
Current state of this port: for alternation implementations
Current state of this port: for alternation implementations
- Definition Classes
- InPort
-
abstract
def
name: String
Name of the channel this port can read from
Name of the channel this port can read from
- Definition Classes
- InPort
-
abstract
def
readBefore(ns: Long): Option[T]
Block until the earlier of the following events happens:
Block until the earlier of the following events happens:
- 1. A value, t, is available for input.
- 2.
ns
nanoseconds have elapsed.Return
Some(
t)
in case 1, andNone
in case 2.The longest possible wait that can specified this way is about 146 years.
- Definition Classes
- InPort
- abstract def registerIn(alt: Runnable, theIndex: Int): PortState
- abstract def unregisterIn(): PortState
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
=?=>(body: (T) ⇒ Unit): InPortEvent[T]
Construct an unconditional input event for use in an alternation.
-
def
=??=>(body: (T) ⇒ Unit): InPortEventExtended[T]
Construct an unconditional extended-rendezvous input event for use in an alternation.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
def
nothing: T
The null value for this port -- equivalent to
null.asInstanceOf[T]
.The null value for this port -- equivalent to
null.asInstanceOf[T]
. Useful to initialise variables that will in due course be assigned values by reading from the port.- Definition Classes
- InPort
- Annotations
- @inline()
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )