Inherited from ProcessType1x1[Int, Int, Unit]
Inherited from ProcessType[Unit]
Inherited from ProcessType1x1[Int, Int, Unit]
Inherited from (IChan[Int], OChan[Int]) ⇒ Process1x1[Int, Int, Unit]
Inherited from ProcessType
Inherited from AnyRef
Inherited from Any
Illustrates the implementation of a readWithin methods that read a value on one stream unless a timeout occurred.
The application terminates when the input stream is closed. This uses a variation of the choice operator noted <%+>, which closes the resulting stream if its left input is closed. In this case the read() call in the readWithin method will thow a user-level exception since no more data is available. This user-level exception handler defined outside the readWithin method will then simply shutdown the process.