A - the accepted (input) type
E - the emitted (downstream) type
R - the result type
public class AbstractCoPipeline<A,E,R> extends AbstractCoAcceptor implements CoPipeline<A,E,R>
Abstract implementation of interface CoPipeline.
interface CoPipeline| Constructor and Description |
|---|
AbstractCoPipeline(CoAcceptor<? super E,? extends R> downstream)
Abstract implementation of
interface CoPipeline. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the pipeline.
|
java.lang.Object |
emit(E p,
kotlin.coroutines.Continuation<? super kotlin.Unit> p1)
Emit a value to the downstream
interface CoAcceptor. |
boolean |
getComplete()
Return
true if all sequences in the input are complete, that is, the input is not in the middle of a
sequence requiring more data. The default implementation tests whether the downstream acceptor is complete. |
R |
getResult()
Get the result (defaults to the result of the downstream acceptor).
|
accept, acceptObjectclose, getClosed, getComplete, getResultemitacceptgetClosed, getComplete, getResultpublic AbstractCoPipeline(@NotNull
CoAcceptor<? super E,? extends R> downstream)
Abstract implementation of interface CoPipeline.
interface CoPipelinepublic void close()
Close the pipeline.
@Nullable
public java.lang.Object emit(E p,
@NotNull
kotlin.coroutines.Continuation<? super kotlin.Unit> p1)
Emit a value to the downstream interface CoAcceptor.
p - the value to be forwardedinterface CoAcceptorpublic R getResult()
Get the result (defaults to the result of the downstream acceptor).
public boolean getComplete()
Return true if all sequences in the input are complete, that is, the input is not in the middle of a
sequence requiring more data. The default implementation tests whether the downstream acceptor is complete.