A - the accepted (input) type
R - the result type
public class AbstractCoAcceptor<A,R> extends BaseAbstractCoAcceptor implements CoAcceptor<A,R>
Abstract implementation of interface CoAcceptor.
interface CoAcceptor| Constructor and Description |
|---|
AbstractCoAcceptor()
Abstract implementation of
interface CoAcceptor. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(A p,
kotlin.coroutines.Continuation<? super kotlin.Unit> p1)
Accept an object. Check for pipeline already closed, and handle end of data. This assumes that
null is used
to indicate end of data; if that is not the case this method must be overridden or an alternative implementation
of interface CoAcceptor used. |
java.lang.Object |
acceptObject(A value,
kotlin.coroutines.Continuation<? super kotlin.Unit> p)
Accept a value, after
closed check and test for end of data. Implementing classes must supply an
implementation of this method. |
close, getClosed, getComplete, getResultacceptgetClosed, getComplete, getResultpublic AbstractCoAcceptor()
Abstract implementation of interface CoAcceptor.
interface CoAcceptor@Nullable
public java.lang.Object accept(@Nullable
A p,
@NotNull
kotlin.coroutines.Continuation<? super kotlin.Unit> p1)
Accept an object. Check for pipeline already closed, and handle end of data. This assumes that null is used
to indicate end of data; if that is not the case this method must be overridden or an alternative implementation
of interface CoAcceptor used.
p - the input valueinterface CoAcceptor@Nullable
public java.lang.Object acceptObject(A value,
@NotNull
kotlin.coroutines.Continuation<? super kotlin.Unit> p)
Accept a value, after closed check and test for end of data. Implementing classes must supply an
implementation of this method.
value - the input value