RunnerSharedStateOps

mill.daemon.RunnerSharedStateOps

Attributes

Source
RunnerSharedState.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def closeAll(state: RunnerSharedState): Unit

Close every classloader/worker still pinned by state.frames. Idempotent on per-frame errors (each close is guarded). Intended for daemon teardown (both the JVM shutdown hook and the regular embedded close() path).

Close every classloader/worker still pinned by state.frames. Idempotent on per-frame errors (each close is guarded). Intended for daemon teardown (both the JVM shutdown hook and the regular embedded close() path).

Does NOT touch bootstrapWorkers: those workers live on the daemon's main classloader, which the JVM owns; closing them here would race with any in-flight launcher that still holds a reference. Daemon teardown waits for launcher sessions to drain via LauncherLockingImpl.close() first.

Attributes

Source
RunnerSharedState.scala