You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Transforms the right input of the given `Pipe2` using a `Pipe`. */
5542
5590
defattachR[I0, O2](p: Pipe2[F, I0, O, O2]):Pipe2[F, I0, I, O2] =
5543
5591
(l, r) => p(l, self(r))
5592
+
5593
+
/** Creates a flow [[Processor]] from this [[Pipe]].
5594
+
*
5595
+
* You are required to manually subscribe this [[Processor]] to an upstream [[Publisher]], and have at least one downstream [[Subscriber]] subscribe to the [[Consumer]].
5596
+
*
5597
+
* Closing the [[Resource]] means not accepting new subscriptions,
5598
+
* but waiting for all active ones to finish consuming.
5599
+
* Canceling the [[Resource.use]] means gracefully shutting down all active subscriptions.
5600
+
* Thus, no more elements will be published.
5601
+
*
5602
+
* @paramchunkSize setup the number of elements asked each time from the upstream [[Publisher]].
5603
+
* A high number may be useful if the publisher is triggering from IO,
5604
+
* like requesting elements from a database.
5605
+
* A high number will also lead to more elements in memory.
/** Provides operations on IO pipes for syntactic convenience. */
5616
+
implicitfinalclassIOPipeOps[I, O](privatevalself:Pipe[IO, I, O]) extendsAnyVal {
5617
+
5618
+
/** Creates a [[Processor]] from this [[Pipe]].
5619
+
*
5620
+
* You are required to manually subscribe this [[Processor]] to an upstream [[Publisher]], and have at least one downstream [[Subscriber]] subscribe to the [[Consumer]].
5621
+
*
5622
+
* @paramchunkSize setup the number of elements asked each time from the upstream [[Publisher]].
5623
+
* A high number may be useful if the publisher is triggering from IO,
5624
+
* like requesting elements from a database.
5625
+
* A high number will also lead to more elements in memory.
0 commit comments