equal
deleted
inserted
replaced
512 { |
512 { |
513 @tailrec def join(running: List[Task]) |
513 @tailrec def join(running: List[Task]) |
514 { |
514 { |
515 running.partition(_.is_finished) match { |
515 running.partition(_.is_finished) match { |
516 case (Nil, Nil) => |
516 case (Nil, Nil) => |
517 case (Nil, _ :: _) => Thread.sleep(500); join(running) |
517 case (Nil, _ :: _) => Time.seconds(0.5).sleep; join(running) |
518 case (_ :: _, remaining) => join(remaining) |
518 case (_ :: _, remaining) => join(remaining) |
519 } |
519 } |
520 } |
520 } |
521 val start_date = Date.now() |
521 val start_date = Date.now() |
522 val running = |
522 val running = |