Skip to content

Commit

Permalink
Merge branch '561'
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed May 20, 2019
2 parents 3079bb0 + 31c54ba commit 5d1610e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main/src/main/MainModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,14 @@ trait MainModule extends mill.Module{
}
}

/**
* Shuts down mill's background server
*/
def shutdown() = mill.T.command {
T.ctx().log.info("Shutting down Mill server...")
System.exit(0)
}

private type VizWorker = (LinkedBlockingQueue[(scala.Seq[_], scala.Seq[_], os.Path)],
LinkedBlockingQueue[Result[scala.Seq[PathRef]]])

Expand Down

0 comments on commit 5d1610e

Please sign in to comment.