RunningState

mill.internal.PromptLogger.RunningState
class RunningState(enableTicker: Boolean, promptUpdaterThreadInterrupt: () => Unit, clearOnPause: () => Unit, synchronizer: AnyRef)

Manages the paused/unpaused/stopped state of the prompt logger. Encapsulate in a separate class because it has to maintain some invariants and ensure bookkeeping is properly done when the paused state change, e.g. interrupting the prompt updater thread and clearing the screen when the ticker is paused.

Attributes

Source
PromptLogger.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def paused: Boolean

Attributes

Source
PromptLogger.scala
def setPaused(prevPaused: Boolean, nextPaused: Boolean): Unit

Attributes

Source
PromptLogger.scala
def stop(): Unit

Attributes

Source
PromptLogger.scala
def stopped: Boolean

Attributes

Source
PromptLogger.scala
def withPromptPaused0[T](innerPaused: Boolean, t: => T): T

Attributes

Source
PromptLogger.scala