class ExecutionContextTaskSupport extends TaskSupport with ExecutionContextTasks
A task support that uses an execution context to schedule tasks.
It can be used with the default execution context implementation in the
scala.concurrent
package. It internally forwards the call to either a
forkjoin based task support or a thread pool executor one, depending on
what the execution context uses.
By default, parallel collections are parameterized with this task support
object, so parallel collections share the same execution context backend
as the rest of the scala.concurrent
package.
- See also
scala.collection.parallel.TaskSupport for more information.
- Alphabetic
- By Inheritance
- ExecutionContextTaskSupport
- ExecutionContextTasks
- TaskSupport
- Tasks
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ExecutionContextTaskSupport(environment: ExecutionContext = ...)
Type Members
-
trait
WrappedTask
[R, +Tp] extends AnyRef
- Definition Classes
- Tasks
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
environment: ExecutionContext
- Definition Classes
- ExecutionContextTaskSupport → ExecutionContextTasks → Tasks
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
execute[R, Tp](task: Task[R, Tp]): () ⇒ R
Executes a task and returns a future.
Executes a task and returns a future. Forwards an exception if some task threw it.
- Definition Classes
- ExecutionContextTasks → Tasks
-
def
executeAndWaitResult[R, Tp](task: Task[R, Tp]): R
Executes a result task, waits for it to finish, then returns its result.
Executes a result task, waits for it to finish, then returns its result. Forwards an exception if some task threw it.
- Definition Classes
- ExecutionContextTasks → Tasks
-
def
executionContext: ExecutionContext
- Definition Classes
- ExecutionContextTasks
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
parallelismLevel: Int
Retrieves the parallelism level of the task execution environment.
Retrieves the parallelism level of the task execution environment.
- Definition Classes
- ExecutionContextTasks → Tasks
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )