Created
June 15, 2017 05:05
-
-
Save charmygarg/18b2ff990e2ba6333dd29313a5c2e2c4 to your computer and use it in GitHub Desktop.
Monix Scheduler Fixed Delay Example 2
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
import java.util.concurrent.TimeUnit | |
import monix.execution.Scheduler.{global => scheduler} | |
import scala.concurrent.duration._ | |
object MonixScheduler extends App { | |
scheduler.scheduleWithFixedDelay(2.seconds, 3.seconds) { | |
println("Fixed Delay Example 2") | |
} | |
Thread.sleep(20000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment