R - the result type
public class AbstractIntCoPipeline<R> extends AbstractIntCoAcceptor implements IntCoPipeline<R>
Abstract implementation of interface IntCoPipeline.
interface IntCoPipelineIntCoAcceptor.DefaultImpls| Constructor and Description |
|---|
AbstractIntCoPipeline(IntCoAcceptor<? extends R> downstream)
Abstract implementation of
interface IntCoPipeline. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the pipeline.
|
java.lang.Object |
emit(int p,
kotlin.coroutines.Continuation<? super kotlin.Unit> p1)
Emit a value to the downstream
interface IntCoAcceptor. |
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, acceptIntclose, getClosed, getComplete, getResultemitaccept, accept, acceptgetClosed, getComplete, getResultpublic AbstractIntCoPipeline(@NotNull
IntCoAcceptor<? extends R> downstream)
Abstract implementation of interface IntCoPipeline.
interface IntCoPipelinepublic void close()
Close the pipeline.
@Nullable
public java.lang.Object emit(int p,
@NotNull
kotlin.coroutines.Continuation<? super kotlin.Unit> p1)
Emit a value to the downstream interface IntCoAcceptor.
p - the value to be forwardedinterface IntCoAcceptorpublic 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.