File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ lazy val commonSettings = Seq(
2525 organization := " dev.whaling" ,
2626 version := " 0.1.1-SNAPSHOT" ,
2727 scalaVersion := " 2.11.12" ,
28+ scalacOptions ++= Seq (
29+ " -feature"
30+ ),
2831 skip in publish := true ,
2932 skip in publishLocal := true
3033)
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ object Main {
66 implicit val ec : ExecutionContext = EventLoop
77
88 def main (args: Array [String ]): Unit = {
9- Timer .delay(3 seconds).flatMap { _ =>
9+ Timer .delay(3 . seconds).flatMap { _ =>
1010 println(" beep" )
11- Timer .delay(2 seconds)
11+ Timer .delay(2 . seconds)
1212 }.flatMap { _ =>
1313 println(" boop" )
14- Timer .delay(1 second)
14+ Timer .delay(1 . second)
1515 }.onComplete { _ =>
1616 println(" done" )
1717 }
You can’t perform that action at this time.
0 commit comments