sealed trait ParSeq[+Z <: Unit, +A] extends AnyRef
ParSeq
is a data type that represents some notion of "events" that can
take place in parallel or in sequence. For example, a ParSeq
parameterized on some error type could be used to model the potentially
multiple ways that an application can fail. On the other hand, a ParSeq
parameterized on some request type could be used to model a collection of
requests to external data sources, some of which could be executed in
parallel and some of which must be executed sequentially.
- Self Type
- ParSeq[Z, A]
- Alphabetic
- By Inheritance
- ParSeq
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def &&[Z1 >: Z <: Unit, A1 >: A](that: ParSeq[Z1, A1]): ParSeq[Z1, A1]
Combines this collection of events with that collection of events to return a new collection of events that represents this collection of events in parallel with that collection of events.
- final def *>[Z1 >: Z <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, B]
A symbolic alias for
zipRight
. - final def ++[Z1 >: Z <: Unit, A1 >: A](that: ParSeq[Z1, A1]): ParSeq[Z1, A1]
Combines this collection of events with that collection of events to return a new collection of events that represents this collection of events followed by that collection of events.
- final def <*[Z1 >: Z <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, A]
A symbolic alias for
zipLeft
. - final def <*>[Z1 >: Z <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, (A, B)]
A symbolic alias for
zip
. - final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def as[B](b: B): ParSeq[Z, B]
Maps the events in this collection of events to the specified constant value.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def first(implicit ev: <:<[Z, Nothing]): A
Returns the first event in this collection of events.
Returns the first event in this collection of events. If multiple events occur in parallel and before any other events then any of these events may be returned.
- Annotations
- @tailrec()
- final def flatMap[Z1 >: Z <: Unit, B](f: (A) => ParSeq[Z1, B]): ParSeq[Z1, B]
Constructs a new collection of events for each event in this collection of events, collecting them back into a single collection of events.
- final def flatten[Z1 >: Z <: Unit, B](implicit ev: <:<[A, ParSeq[Z1, B]]): ParSeq[Z1, B]
Flattens a collection of collections of events into a single collection of events.
- final def fold[B](emptyCase: B, singleCase: (A) => B)(thenCase: (B, B) => B, bothCase: (B, B) => B): B
Folds over the events in this collection of events using the specified functions.
- final def forEach[F[+_], B](f: (A) => F[B])(implicit arg0: IdentityBoth[F], arg1: Covariant[F]): F[ParSeq[Z, B]]
Performs the specified effectual function for each event in this collection of events, collecting them back into a single collection of events.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def map[B](f: (A) => B): ParSeq[Z, B]
Transforms the type of events in this collection of events with the specified function.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toCause: Cause[A]
- final def toNonEmptyMultiSet(implicit ev: <:<[Z, Nothing]): NonEmptyMultiSet[A]
Converts this collection of events to a
NonEmptyMultiSet
of events, discarding information about the sequential structure of events. - def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def zip[Z1 >: Z <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, (A, B)]
Combines this collection of events with that collection of events to return the Cartesian product of events, combining the elements into a tuple.
- final def zipLeft[Z1 >: Z <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, A]
Combines this collection of events with that collection of events to return the Cartesian product of events, keeping only the events from this collection.
- final def zipRight[Z1 >: Z <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, B]
Combines this collection of events with that collection of events to return the Cartesian product of events, keeping only the events from that collection.
- final def zipWith[Z1 >: Z <: Unit, B, C](that: ParSeq[Z1, B])(f: (A, B) => C): ParSeq[Z1, C]
Combines this collection of events with that collection of events to return the Cartesian product of events using the specified function.