diff options
Diffstat (limited to 'test/files/jvm/actor-termination.scala')
-rw-r--r-- | test/files/jvm/actor-termination.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/jvm/actor-termination.scala b/test/files/jvm/actor-termination.scala new file mode 100644 index 0000000000..19dfaf8e17 --- /dev/null +++ b/test/files/jvm/actor-termination.scala @@ -0,0 +1,13 @@ +import scala.actors.Actor + +/* Test that an actor that hasn't finished prevents termination */ + +object Test { + def main(args: Array[String]) { + Actor.actor { + println("I'm going to make you wait.") + Thread.sleep(5000) + println("Ok, I'm done.") + } + } +} |