-
- All Implemented Interfaces:
-
kotlinx.coroutines.channels.SendChannel
public final class NullSendChannel implements SendChannel<ByteReadPacket>Sending to NullSendChannel behaves like sending to
/dev/null
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisClosedForSendprivate final BooleanisFullprivate final SelectClause2<ByteReadPacket, SendChannel<ByteReadPacket>>onSend
-
Constructor Summary
Constructors Constructor Description NullSendChannel()
-
Method Summary
Modifier and Type Method Description BooleangetIsClosedForSend()BooleangetIsFull()SelectClause2<ByteReadPacket, SendChannel<ByteReadPacket>>getOnSend()Booleanclose(Throwable cause)UnitinvokeOnClose(Function1<Throwable, Unit> handler)Booleanoffer(ByteReadPacket element)Unitsend(ByteReadPacket element)-
-
Method Detail
-
getIsClosedForSend
Boolean getIsClosedForSend()
-
getOnSend
SelectClause2<ByteReadPacket, SendChannel<ByteReadPacket>> getOnSend()
-
invokeOnClose
@ExperimentalCoroutinesApi() Unit invokeOnClose(Function1<Throwable, Unit> handler)
-
-
-
-