class WrappedTask[R, Tp] extends RecursiveAction with AdaptiveWorkStealingForkJoinTasks.WrappedTask[R, Tp] with AdaptiveWorkStealingForkJoinTasks.WrappedTask[R, Tp]
- Source
- Tasks.scala
- Alphabetic
- By Inheritance
- WrappedTask
- WrappedTask
- WrappedTask
- WrappedTask
- RecursiveAction
- ForkJoinTask
- Serializable
- Future
- AnyRef
- Any
- by CollectionsHaveToParArray
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
val
body: Task[R, Tp]
the body of this task - what it executes, how it gets split and how results are merged.
the body of this task - what it executes, how it gets split and how results are merged.
- Definition Classes
- WrappedTask → WrappedTask
-
def
cancel(arg0: Boolean): Boolean
- Definition Classes
- ForkJoinTask → Future
-
final
def
compareAndSetForkJoinTaskTag(arg0: Short, arg1: Short): Boolean
- Definition Classes
- ForkJoinTask
-
def
complete(arg0: Void): Unit
- Definition Classes
- ForkJoinTask
-
def
completeExceptionally(arg0: java.lang.Throwable): Unit
- Definition Classes
- ForkJoinTask
-
def
compute(): Unit
Code that gets called after the task gets started - it may spawn other tasks instead of calling
leaf
.Code that gets called after the task gets started - it may spawn other tasks instead of calling
leaf
.- Definition Classes
- WrappedTask → WrappedTask
-
final
def
fork(): ForkJoinTask[Void]
- Definition Classes
- ForkJoinTask
- final def get(arg0: Long, arg1: TimeUnit): Void
- final def get(): Void
-
final
def
getException(): java.lang.Throwable
- Definition Classes
- ForkJoinTask
-
final
def
getForkJoinTaskTag(): Short
- Definition Classes
- ForkJoinTask
-
final
def
getRawResult(): Void
- Definition Classes
- RecursiveAction → ForkJoinTask
-
def
internal(): Unit
- Definition Classes
- WrappedTask
-
final
def
invoke(): Void
- Definition Classes
- ForkJoinTask
-
final
def
isCancelled(): Boolean
- Definition Classes
- ForkJoinTask → Future
-
final
def
isCompletedAbnormally(): Boolean
- Definition Classes
- ForkJoinTask
-
final
def
isCompletedNormally(): Boolean
- Definition Classes
- ForkJoinTask
-
final
def
isDone(): Boolean
- Definition Classes
- ForkJoinTask → Future
-
final
def
join(): Void
- Definition Classes
- ForkJoinTask
-
val
next: AdaptiveWorkStealingForkJoinTasks.WrappedTask[R, Tp]
- Definition Classes
- WrappedTask
- Annotations
- @volatile()
-
def
printChain(): Unit
- Definition Classes
- WrappedTask
-
final
def
quietlyComplete(): Unit
- Definition Classes
- ForkJoinTask
-
final
def
quietlyInvoke(): Unit
- Definition Classes
- ForkJoinTask
-
final
def
quietlyJoin(): Unit
- Definition Classes
- ForkJoinTask
-
def
reinitialize(): Unit
- Definition Classes
- ForkJoinTask
-
def
release(): Unit
If the task has been cancelled successfully, those syncing on it may automatically be notified, depending on the implementation.
If the task has been cancelled successfully, those syncing on it may automatically be notified, depending on the implementation. If they aren't, this release method should be called after processing the cancelled task.
This method may be overridden.
- Definition Classes
- WrappedTask
-
final
def
setForkJoinTaskTag(arg0: Short): Short
- Definition Classes
- ForkJoinTask
-
val
shouldWaitFor: Boolean
- Definition Classes
- WrappedTask
- Annotations
- @volatile()
-
def
spawnSubtasks(): AdaptiveWorkStealingForkJoinTasks.WrappedTask[R, Tp]
- Definition Classes
- WrappedTask
-
def
split: scala.Seq[AdaptiveWorkStealingForkJoinTasks.WrappedTask[R, Tp]]
- Definition Classes
- WrappedTask → WrappedTask → WrappedTask
-
def
start(): Unit
Start task.
Start task.
- Definition Classes
- WrappedTask → WrappedTask
-
def
sync(): Unit
Wait for task to finish.
Wait for task to finish.
- Definition Classes
- WrappedTask → WrappedTask
-
def
toParArray: ParArray[T]
- Implicit
- This member is added by an implicit conversion from WrappedTask[R, Tp] to CollectionsHaveToParArray[WrappedTask[R, Tp], T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (WrappedTask[R, Tp]) ⇒ GenTraversableOnce[T] is in scope.
- Definition Classes
- CollectionsHaveToParArray
-
def
tryCancel(): Boolean
Try to cancel the task.
Try to cancel the task.
- returns
true
if cancellation is successful.
- Definition Classes
- WrappedTask → WrappedTask
-
def
tryUnfork(): Boolean
- Definition Classes
- ForkJoinTask
This is the documentation for the Scala standard library.
Package structure
The scala package contains core types like
Int
,Float
,Array
orOption
which are accessible in all Scala compilation units without explicit qualification or imports.Notable packages include:
scala.collection
and its sub-packages contain Scala's collections frameworkscala.collection.immutable
- Immutable, sequential data-structures such asVector
,List
,Range
,HashMap
orHashSet
scala.collection.mutable
- Mutable, sequential data-structures such asArrayBuffer
,StringBuilder
,HashMap
orHashSet
scala.collection.concurrent
- Mutable, concurrent data-structures such asTrieMap
scala.collection.parallel.immutable
- Immutable, parallel data-structures such asParVector
,ParRange
,ParHashMap
orParHashSet
scala.collection.parallel.mutable
- Mutable, parallel data-structures such asParArray
,ParHashMap
,ParTrieMap
orParHashSet
scala.concurrent
- Primitives for concurrent programming such asFutures
andPromises
scala.io
- Input and output operationsscala.math
- Basic math functions and additional numeric types likeBigInt
andBigDecimal
scala.sys
- Interaction with other processes and the operating systemscala.util.matching
- Regular expressionsOther packages exist. See the complete list on the right.
Additional parts of the standard library are shipped as separate libraries. These include:
scala.reflect
- Scala's reflection API (scala-reflect.jar)scala.xml
- XML parsing, manipulation, and serialization (scala-xml.jar)scala.swing
- A convenient wrapper around Java's GUI framework called Swing (scala-swing.jar)scala.util.parsing
- Parser combinators (scala-parser-combinators.jar)Automatic imports
Identifiers in the scala package and the
scala.Predef
object are always in scope by default.Some of these identifiers are type aliases provided as shortcuts to commonly used classes. For example,
List
is an alias forscala.collection.immutable.List
.Other aliases refer to classes provided by the underlying platform. For example, on the JVM,
String
is an alias forjava.lang.String
.