Fork

mill.define.TaskCtx.Fork
See theFork companion object
trait Fork

Attributes

Companion
object
Source
TaskCtx.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait TaskCtx

Members list

Value members

Abstract methods

@Scaladoc(value = "/**\n * Provides APIs for Mill tasks to spawn `async` \"future\" computations that\n * can be `await`ed upon to yield their result. Unlike other thread pools or\n * `Executor`s, `fork.async` spawns futures that follow Mill\'s `-j`/`--jobs` config,\n * sandbox their `os.pwd` in separate folders, and integrate with Mill\'s terminal\n * logging prefixes and prompt so a user can easily see what futures are running\n * and what logs belong to each future.\n */")
def fork: Api

Provides APIs for Mill tasks to spawn async "future" computations that can be awaited upon to yield their result. Unlike other thread pools or Executors, fork.async spawns futures that follow Mill's -j/--jobs config, sandbox their os.pwd in separate folders, and integrate with Mill's terminal logging prefixes and prompt so a user can easily see what futures are running and what logs belong to each future.

Provides APIs for Mill tasks to spawn async "future" computations that can be awaited upon to yield their result. Unlike other thread pools or Executors, fork.async spawns futures that follow Mill's -j/--jobs config, sandbox their os.pwd in separate folders, and integrate with Mill's terminal logging prefixes and prompt so a user can easily see what futures are running and what logs belong to each future.

Attributes

Source
TaskCtx.scala