#19269 doc: Sink.seq is limited to Int.MaxValue
This commit is contained in:
parent
2ba8ec1aeb
commit
d4b1f07ec0
2 changed files with 4 additions and 0 deletions
|
|
@ -139,6 +139,8 @@ object Sink {
|
||||||
* As upstream may be unbounded, `Flow[T].take` or the stricter `Flow[T].limit` (and their variants)
|
* As upstream may be unbounded, `Flow[T].take` or the stricter `Flow[T].limit` (and their variants)
|
||||||
* may be used to ensure boundedness.
|
* may be used to ensure boundedness.
|
||||||
* Materializes into a `Future` of `Seq[T]` containing all the collected elements.
|
* Materializes into a `Future` of `Seq[T]` containing all the collected elements.
|
||||||
|
* `List` is limited to `Integer.MAX_VALUE` elements, this Sink will cancel the stream
|
||||||
|
* after having received that many elements.
|
||||||
*
|
*
|
||||||
* See also [[Flow.limit]], [[Flow.limitWeighted]], [[Flow.take]], [[Flow.takeWithin]], [[Flow.takeWhile]]
|
* See also [[Flow.limit]], [[Flow.limitWeighted]], [[Flow.take]], [[Flow.takeWithin]], [[Flow.takeWhile]]
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,8 @@ object Sink {
|
||||||
* As upstream may be unbounded, `Flow[T].take` or the stricter `Flow[T].limit` (and their variants)
|
* As upstream may be unbounded, `Flow[T].take` or the stricter `Flow[T].limit` (and their variants)
|
||||||
* may be used to ensure boundedness.
|
* may be used to ensure boundedness.
|
||||||
* Materializes into a `Future` of `Seq[T]` containing all the collected elements.
|
* Materializes into a `Future` of `Seq[T]` containing all the collected elements.
|
||||||
|
* `Seq` is limited to `Int.MaxValue` elements, this Sink will cancel the stream
|
||||||
|
* after having received that many elements.
|
||||||
*
|
*
|
||||||
* See also [[Flow.limit]], [[Flow.limitWeighted]], [[Flow.take]], [[Flow.takeWithin]], [[Flow.takeWhile]]
|
* See also [[Flow.limit]], [[Flow.limitWeighted]], [[Flow.take]], [[Flow.takeWithin]], [[Flow.takeWhile]]
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue