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 CoAcceptorpublic AbstractCoAcceptor()
Abstract implementation of interface CoAcceptor.
interface CoAcceptor@Nullable
public java.lang.Object accept(@Nullable
A p,
@NotNull
kotlin.coroutines.Continuation<? super kotlin.Unit> $completion)
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