blob: 725a9f93db1c29aeaf29cad16546007af3084014 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import scala.actors.Actor
object Test extends Application {
Actor.actor {
Actor.reactWithin(1) { case x => println("OK1") }
}
Thread.sleep(500) // Wait for scheduler to poll ActorGC
Actor.actor {
Actor.reactWithin(1) { case x => println("OK2") }
}
Thread.sleep(500)
}
|