All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.actors.scheduler.DrainableForkJoinPool.scala Maven / Gradle / Ivy

There is a newer version: 2.11.2
Show newest version
package scala.actors
package scheduler

import java.util.Collection
import scala.concurrent.forkjoin.{ForkJoinPool, ForkJoinTask}

private class DrainableForkJoinPool(parallelism: Int, maxPoolSize: Int) extends ForkJoinPool(parallelism, ForkJoinPool.defaultForkJoinWorkerThreadFactory, null, true) {

  override def drainTasksTo(c: Collection[ _ >: ForkJoinTask[_]]): Int =
    super.drainTasksTo(c)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy