Watching
mill.daemon.Watching
object Watching
Logic around the "watch and wait" functionality in Mill: re-run on change, re-run when the user presses Enter, printing status messages, etc.
Attributes
- Source
- Watching.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Watching.type
Members list
Type members
Classlikes
Attributes
- Source
- Watching.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Source
- Watching.scala
- Supertypes
-
trait Serializabletrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value parameters
- daemonDir
-
the directory for storing logs of the mill server
- useNotify
-
whether to use filesystem based watcher. If it is false uses polling.
Attributes
- Source
- Watching.scala
- Supertypes
-
trait Serializabletrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Attributes
- Returns
-
true if the watchable did not change.
- Source
- Watching.scala
Attributes
- Source
- Watching.scala
Attributes
- Source
- Watching.scala
def statWatchWait[T](watchedValues: Seq[Value], notifiablesChanged: () => Boolean, sideChannel: () => Option[T]): Option[T]
Value parameters
- notifiablesChanged
-
returns true if any of the notifiables have changed
Attributes
- Returns
-
Some(...)
if notifiablesChanged returned aSome(...)
,None
if changes in watched files occured. - Source
- Watching.scala
def watchAndWait[T](watched: Seq[Watchable], watchArgs: WatchArgs, sideChannel: () => Option[T], extraMessage: String, log: String => Unit): Option[T]
Attributes
- Source
- Watching.scala
def watchLoop[T](ringBell: Boolean, watch: Option[WatchArgs], streams: SystemStreams, evaluate: Evaluate[T]): (Boolean, T)
Value parameters
- ringBell
-
whether to emit bells
- watch
-
if None just runs once and returns
Attributes
- Source
- Watching.scala
In this article