Skip to content

Instantly share code, notes, and snippets.

@manjotmona
Created November 11, 2018 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manjotmona/28567ed9c163c5bba5c00dbfc87ac589 to your computer and use it in GitHub Desktop.
Save manjotmona/28567ed9c163c5bba5c00dbfc87ac589 to your computer and use it in GitHub Desktop.
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