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 Object
trait Matchable
class Any
Self type
Watching.type

Members list

Type members

Classlikes

trait Evaluate[T]

Attributes

Source
Watching.scala
Supertypes
class Object
trait Matchable
class Any
case class Result[T](watched: Seq[Watchable], error: Option[String], result: T)

Attributes

Source
Watching.scala
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class WatchArgs(setIdle: Boolean => Unit, colors: Colors, useNotify: Boolean, daemonDir: Path)

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 Serializable
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def haveNotChanged(w: Watchable): Boolean

Attributes

Returns

true if the watchable did not change.

Source
Watching.scala
def poll(w: Watchable): Long

Attributes

Source
Watching.scala
def signature(w: Watchable): Long

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 a Some(...), 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