Impl

mill.api.Ctx.Fork.Impl
trait Impl extends Api, ExecutionContext, AutoCloseable

Attributes

Source
Ctx.scala
Graph
Supertypes
trait AutoCloseable
trait ExecutionContext
trait Api
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def awaitAll[T](t: Seq[Future[T]]): Seq[T]

Awaits for the result for multiple async futures and returns the resultant values

Awaits for the result for multiple async futures and returns the resultant values

Attributes

Source
Ctx.scala

Inherited and Abstract methods

@Scaladoc(value = "/**\n * Spawns an async workflow. Mill async futures require additional metadata\n * to sandbox, store logs, and integrate them into Mills terminal prompt logger\n *\n * @param dest The \"sandbox\" folder that will contain the `os.pwd` and the `pwd` for\n * any subprocesses spawned within the async future. Also provides the\n * path for the log file (dest + \".log\") for any stdout/stderr `println`s\n * that occur within that future\n * @param key The short prefix, typically a number (\"1\", \"2\", \"3\", etc.) that will be\n * used to prefix all log lines emitted within this async future in the\n * terminal to allow them to be distinguished from other logs\n * @param message A one-line summary of what this async future is doing, used in the\n * terminal prompt to display what this future is currently computing.\n * @param priority 0 means the same priority as other Mill tasks, negative values <0\n * mean increasingly high priority, positive values >0 mean increasingly\n * low priority\n * @param t The body of the async future\n */")
def async[T](dest: Path, key: String, message: String, priority: Int)(t: Logger => T)(implicit ctx: Ctx): Future[T]

Spawns an async workflow. Mill async futures require additional metadata to sandbox, store logs, and integrate them into Mills terminal prompt logger

Spawns an async workflow. Mill async futures require additional metadata to sandbox, store logs, and integrate them into Mills terminal prompt logger

Value parameters

dest

The "sandbox" folder that will contain the os.pwd and the pwd for any subprocesses spawned within the async future. Also provides the path for the log file (dest + ".log") for any stdout/stderr printlns that occur within that future

key

The short prefix, typically a number ("1", "2", "3", etc.) that will be used to prefix all log lines emitted within this async future in the terminal to allow them to be distinguished from other logs

message

A one-line summary of what this async future is doing, used in the terminal prompt to display what this future is currently computing.

priority

0 means the same priority as other Mill tasks, negative values <0 mean increasingly high priority, positive values >0 mean increasingly low priority

t

The body of the async future

Attributes

Inherited from:
Api
Source
Ctx.scala
@Scaladoc(value = "/**\n * Awaits for the result for the given async future and returns the resultant value\n */")
def await[T](t: Future[T]): T

Awaits for the result for the given async future and returns the resultant value

Awaits for the result for the given async future and returns the resultant value

Attributes

Inherited from:
Api
Source
Ctx.scala
def blocking[T](t: => T): T

Attributes

Inherited from:
Api
Source
Ctx.scala
def close(): Unit

Attributes

Inherited from:
AutoCloseable
def execute(runnable: Runnable): Unit

Attributes

Inherited from:
ExecutionContext
def reportFailure(cause: Throwable): Unit

Attributes

Inherited from:
ExecutionContext

Deprecated and Inherited methods

def prepare(): ExecutionContext

Attributes

Deprecated
[Since version 2.12.0] preparation of ExecutionContexts will be removed
Inherited from:
ExecutionContext