Inherited from ProcessType2x1[Int, Int, Int, Unit]
Inherited from ProcessType[Unit]
Inherited from ProcessType2x1[Int, Int, Int, Unit]
Inherited from (IChan[Int], IChan[Int], OChan[Int]) ⇒ Process2x1[Int, Int, Int, Unit]
Inherited from ProcessType
Inherited from AnyRef
Inherited from Any
Alternate reads on two streams of integers.
This process prints only even numbers of one stream and odd numbers of the other stream. Also, the stream with the highest throughput (larger batches) is consumed faster than the stream with the lowest throughput.
The example terminates when both streams have entirely been consumed.
For a less theoretical example of choice, see the stopwatch controller.