Advertisement
Guest User

Untitled

a guest
Dec 10th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.26 KB | None | 0 0
  1. val epubs: Stream[File]
  2. val system = ActorSystem("reader-thing")
  3. val processor = system.actorOf(Props(classOf[FixedNumberOfChildren], 12))
  4. epubs.foreach{ epub =>
  5.   val isbn = epub.getIsbn
  6.   processor ! ProcessEpub(epub, isbn, writeToFile)
  7. }
  8. processor ! Fin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement