iGrind

Untitled

May 21st, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.49 KB | None | 0 0
  1. .....
  2. context.system.scheduler.schedule(1 minute, 1 minute, self, StartScout)
  3. .....
  4. .....
  5. def receive = {
  6.       case StartScout ⇒
  7.         if (scheduledKeywords.isEmpty) {
  8.           scheduledKeywords = keywordsConfig.keywords.toList
  9.         }
  10.  
  11.         if (scheduledKeywords.nonEmpty) {
  12.           val (head :: tail) = scheduledKeywords
  13.           scheduledKeywords = tail
  14.  
  15.           fetchRssPage(0, head)
  16.         }
  17.  
  18.         // loadFromFiles("/Users/kulikov/Work/text/ya/imho/")
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment