blob: 28f1853a6883f7d04534d6d287c0050c3cc7d8bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import scala.concurrent.Process._;
class D() {
def start_listener(Child:Process) = {
var running = true;
while (running) {
receiveWithin(0) {
case TIMEOUT() => {
Child ! 'foo;
}
}
}
}
}
|