This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JettyTestServer.start | |
| val baseUrl = "/twitter" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scala.actors._ | |
| import Actor._ | |
| case object DoIt | |
| val worker = actor { | |
| loop { | |
| react { | |
| case DoIt => println("Time for work at " + new java.util.Date()) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scala.actors._ | |
| import Actor._ | |
| for (i <- 1 to 500) actor { | |
| println("Starting actor... " + i) | |
| Thread.sleep(5000L) | |
| } |
NewerOlder