Created
November 11, 2018 21:00
-
-
Save manjotmona/28567ed9c163c5bba5c00dbfc87ac589 to your computer and use it in GitHub Desktop.
This file contains 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
class AkkaJobScheduler | |
{ | |
def run : Cancellable = | |
{ | |
val system = akka.actor.ActorSystem("system") | |
val simpleJob = system.actorOf(SimpleJob.props(), "simple-job") | |
system.scheduler.schedule(0 milliseconds,50 milliseconds, simpleJob, "foo") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment