Skip to content

Commit

Permalink
name refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
wwagner4 committed Apr 9, 2016
1 parent 7b2d50f commit 2af02c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jvm/src/main/scala/doctus/jvm/DoctusJvm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ case object DoctusSchedulerJvm extends DoctusScheduler {
require(initialDelay >= 0, "Initial delay must be greater equal to zero. " + duration)

val scheduler: ScheduledExecutorService = Executors.newScheduledThreadPool(1)
val b = new Runnable {
val runnable = new Runnable {
override def run(): Unit = f()
}
val future = scheduler.scheduleAtFixedRate(b, initialDelay, duration, TimeUnit.MILLISECONDS)
val future = scheduler.scheduleAtFixedRate(runnable, initialDelay, duration, TimeUnit.MILLISECONDS)

new DoctusScheduler.Stopper {
// Stops the execution of a Scheduler
Expand Down

0 comments on commit 2af02c6

Please sign in to comment.