Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
jchyb committed Oct 30, 2024
1 parent ede1b04 commit 751a990
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions frontend/src/main/scala/bloop/engine/tasks/CompileTask.scala
Original file line number Diff line number Diff line change
Expand Up @@ -530,16 +530,25 @@ object CompileTask {
Task.eval {
logger.debug(s"Deleting contents of orphan dir $classesDir")
BloopPaths.delete(classesDir)
}.asyncBoundary
}
}

Task
.gatherUnordered(
List(
deleteOrphanDir(previousReadOnlyToDelete),
deleteOrphanDir(previousBestEffortToDelete)
)
)
.map(_ => ())
// Task
// .gatherUnordered(
// List(
// deleteOrphanDir(previousReadOnlyToDelete),
// deleteOrphanDir(previousBestEffortToDelete)
// )
// )
// .map(_ => ())
// .asyncBoundary
previousReadOnlyToDelete match {
case None => Task.unit
case Some(classesDir) =>
Task.eval {
logger.debug(s"Deleting contents of orphan dir $classesDir")
BloopPaths.delete(classesDir)
}.asyncBoundary
}
}
}

0 comments on commit 751a990

Please sign in to comment.