summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library/scala/collection/parallel/ParIterableLike.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/collection/parallel/ParIterableLike.scala b/src/library/scala/collection/parallel/ParIterableLike.scala
index 1a63e26622..6b32a7c6b8 100644
--- a/src/library/scala/collection/parallel/ParIterableLike.scala
+++ b/src/library/scala/collection/parallel/ParIterableLike.scala
@@ -122,6 +122,9 @@ import annotation.unchecked.uncheckedVariance
* `newCombiner` and `seq`. Having an implicit combiner factory requires extending this trait in addition, as
* well as providing a companion object, as with regular collections.
*
+ * Method `size` is implemented as a constant time operation for parallel collections, and parallel collection
+ * operations rely on this assumption.
+ *
* @author Aleksandar Prokopec
* @since 2.9
*