PriorityRunnable

mill.exec.ExecutionContexts.ThreadPool.PriorityRunnable
class PriorityRunnable(val priority: Int, run0: () => Unit) extends Runnable, Comparable[PriorityRunnable]

Subclass of java.lang.Runnable that assigns a priority to execute it

Priority 0 is the default priority of all Mill task, priorities <0 can be used to prioritize this runnable over most other tasks, while priorities >0 can be used to de-prioritize it.

Attributes

Source
ExecutionContexts.scala
Graph
Supertypes
trait Comparable[ThreadPool.this.PriorityRunnable]
trait Runnable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def compareTo(o: ThreadPool.this.PriorityRunnable): Int

Attributes

Definition Classes
Comparable
Source
ExecutionContexts.scala
def run(): Unit

Attributes

Source
ExecutionContexts.scala

Concrete fields

val priority: Int

Attributes

Source
ExecutionContexts.scala

Attributes

Source
ExecutionContexts.scala