object pipe2
- Alphabetic
- By Inheritance
- pipe2
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
trait
Stepper
[-I, -I2, +O] extends AnyRef
Allows stepping of a pure pipe.
Allows stepping of a pure pipe. Each invocation of step results in a value of the Stepper.Step algebra, indicating that the pipe is either done, it failed with an exception, it emitted a chunk of output, or it is awaiting input from either the left or right branch.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
covary[F[_], I, I2, O](p: Pipe2[Pure, I, I2, O]): Pipe2[F, I, I2, O]
Converts a pure
Pipe2
to an effectfulPipe2
of the specified type. -
def
either[F[_], I, I2](implicit arg0: Async[F]): Pipe2[F, I, I2, Either[I, I2]]
Like
merge
, but tags each output with the branch it came from. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
interleave[F[_], O]: Pipe2[F, O, O, O]
Determinsitically interleaves elements, starting on the left, terminating when the end of either branch is reached naturally.
-
def
interleaveAll[F[_], O]: Pipe2[F, O, O, O]
Determinsitically interleaves elements, starting on the left, terminating when the ends of both branches are reached naturally.
-
def
interrupt[F[_], I](implicit arg0: Async[F]): Pipe2[F, Boolean, I, I]
Let through the
s2
branch as long as thes1
branch isfalse
, listening asynchronously for the left branch to becometrue
.Let through the
s2
branch as long as thes1
branch isfalse
, listening asynchronously for the left branch to becometrue
. This halts as soon as either branch halts. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
merge[F[_], O](implicit arg0: Async[F]): Pipe2[F, O, O, O]
Interleaves the two inputs nondeterministically.
Interleaves the two inputs nondeterministically. The output stream halts after BOTH
s1
ands2
terminate normally, or in the event of an uncaught failure on eithers1
ors2
. Has the property thatmerge(Stream.empty, s) == s
andmerge(fail(e), s)
will eventually terminate withfail(e)
, possibly after emitting some elements ofs
first. -
def
mergeDrainL[F[_], I, I2](implicit arg0: Async[F]): Pipe2[F, I, I2, I2]
Defined as
s1.drain merge s2
.Defined as
s1.drain merge s2
. Runss1
ands2
concurrently, ignoring any output ofs1
. -
def
mergeDrainR[F[_], I, I2](implicit arg0: Async[F]): Pipe2[F, I, I2, I]
Defined as
s1 merge s2.drain
.Defined as
s1 merge s2.drain
. Runss1
ands2
concurrently, ignoring any output ofs1
. -
def
mergeHaltBoth[F[_], O](implicit arg0: Async[F]): Pipe2[F, O, O, O]
Like
merge
, but halts as soon as _either_ branch halts. -
def
mergeHaltL[F[_], O](implicit arg0: Async[F]): Pipe2[F, O, O, O]
Like
merge
, but halts as soon as thes1
branch halts. -
def
mergeHaltR[F[_], O](implicit arg0: Async[F]): Pipe2[F, O, O, O]
Like
merge
, but halts as soon as thes2
branch halts. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
stepper[I, I2, O](p: Pipe2[Pure, I, I2, O]): Stepper[I, I2, O]
Creates a Stepper, which allows incrementally stepping a pure
Pipe2
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
zip[F[_], I, I2]: Pipe2[F, I, I2, (I, I2)]
Determinsitically zips elements, terminating when the end of either branch is reached naturally.
-
def
zipAll[F[_], I, I2](pad1: I, pad2: I2): Pipe2[F, I, I2, (I, I2)]
Determinsitically zips elements, terminating when the ends of both branches are reached naturally, padding the left branch with
pad1
and padding the right branch withpad2
as necessary. -
def
zipAllWith[F[_], I, I2, O](pad1: I, pad2: I2)(f: (I, I2) ⇒ O): Pipe2[F, I, I2, O]
Determinsitically zips elements with the specified function, terminating when the ends of both branches are reached naturally, padding the left branch with
pad1
and padding the right branch withpad2
as necessary. -
def
zipWith[F[_], I, I2, O](f: (I, I2) ⇒ O): Pipe2[F, I, I2, O]
Determinsitically zips elements using the specified function, terminating when the end of either branch is reached naturally.
- object Stepper