File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
reactive-streams/src/main/scala/fs2/interop/reactivestreams Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ package object reactivestreams {
6060 * A high number can be useful if the publisher is triggering from IO, like requesting elements from a database.
6161 * The publisher can use this `bufferSize` to query elements in batch.
6262 * A high number will also lead to more elements in memory.
63+ * The stream will not emit new element until, either the `Chunk` is filled or the publisher finishes.
6364 */
6465 def fromPublisher [F [_]: Async , A ](p : Publisher [A ], bufferSize : Int ): Stream [F , A ] =
6566 Stream
@@ -87,6 +88,7 @@ package object reactivestreams {
8788 * A high number can be useful if the publisher is triggering from IO, like requesting elements from a database.
8889 * The publisher can use this `bufferSize` to query elements in batch.
8990 * A high number will also lead to more elements in memory.
91+ * The stream will not emit new element until, either the `Chunk` is filled or the publisher finishes.
9092 */
9193 def toStreamBuffered [F [_]: Async ](bufferSize : Int ): Stream [F , A ] =
9294 fromPublisher(publisher, bufferSize)
You can’t perform that action at this time.
0 commit comments