object SubFlow
- Source
- SubFlow.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SubFlow
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
upcast[In, SuperOut, Out <: SuperOut, M](flow: SubFlow[In, Out, M]): SubFlow[In, SuperOut, M]
Upcast a stream of elements to a stream of supertypes of that element.
Upcast a stream of elements to a stream of supertypes of that element. Useful in combination with fan-in operators where you do not want to pay the cost of casting each element in a
map
.- SuperOut
a supertype to the type of element flowing out of the flow
- returns
A flow that accepts
In
and outputs elements of the super type