object FuturePool
Note: There is a Java-friendly API for this object: com.twitter.util.FuturePools.
- Alphabetic
- By Inheritance
- FuturePool
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(executor: ExecutorService): ExecutorServiceFuturePool
Creates a FuturePool backed by an
java.util.concurrent.ExecutorService
. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val immediatePool: FuturePool
A FuturePool that really isn't; it executes tasks immediately without waiting.
A FuturePool that really isn't; it executes tasks immediately without waiting. This can be useful in unit tests.
- def interruptible(executor: ExecutorService): ExecutorServiceFuturePool
Creates a FuturePool backed by an
java.util.concurrent.ExecutorService
which propagates cancellation. - lazy val interruptibleUnboundedPool: FuturePool
The default future pool, using a cached threadpool, provided by
java.util.concurrent.Executors.newCachedThreadPool
.The default future pool, using a cached threadpool, provided by
java.util.concurrent.Executors.newCachedThreadPool
. Note that this is intended for IO concurrency; computational parallelism typically requires special treatment. If an interrupt is raised on a returned Future and the work has started, an attempt will be made to interrupt the worker thread. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- lazy val unboundedPool: FuturePool
The default future pool, using a cached threadpool, provided by
java.util.concurrent.Executors.newCachedThreadPool
.The default future pool, using a cached threadpool, provided by
java.util.concurrent.Executors.newCachedThreadPool
. Note that this is intended for IO concurrency; computational parallelism typically requires special treatment. If an interrupt is raised on a returned Future and the work has started, the worker thread will not be interrupted. - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()