Last active
December 11, 2015 06:48
-
-
Save jamie-allen/4561541 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
Async { | |
Logger.debug(s"Start $duration second wait") | |
Akka.system.scheduler.scheduleOnce(duration seconds){ | |
val blocker = Future { duration } | |
blocker map { duration => | |
Logger.debug(s"Finished $duration second wait") | |
Ok(duration.toString) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment