Skip to content

Commit

Permalink
Merge pull request #617 from xuwei-k/pollInterval
Browse files Browse the repository at this point in the history
fix pollInterval example
  • Loading branch information
dwijnand authored Feb 10, 2018
2 parents 7d4c1cf + 8095bd3 commit 20480d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/reference/04-Howto/12-Howto-Triggered.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,7 @@ watchSources += baseDirectory.value / "demo" / "examples.txt"
milliseconds. The default value is `500 ms`. To change it to `1 s`,

```scala
pollInterval := 1000 // in ms
import scala.concurrent.duration._

pollInterval := 1.second
```
4 changes: 3 additions & 1 deletion src/reference/04-Howto/90-Examples/01-Basic-Def-Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Listed here are some examples of settings (each setting is independent).
See [.sbt build definition][Basic-Def] for details.

```scala
import scala.concurrent.duration._

// factor out common settings into a sequence
lazy val commonSettings = Seq(
organization := "org.myproject",
Expand Down Expand Up @@ -52,7 +54,7 @@ lazy val root = (project in file("."))
maxErrors := 20,

// increase the time between polling for file changes when using continuous execution
pollInterval := 1000,
pollInterval := 1.second,

// append several options to the list of options passed to the Java compiler
javacOptions ++= Seq("-source", "1.5", "-target", "1.5"),
Expand Down

0 comments on commit 20480d1

Please sign in to comment.