-
- All Implemented Interfaces:
-
kotlinx.coroutines.channels.ReceiveChannel
public interface ReceiveChannel<E extends Object> implements ReceiveChannel<E>
ReceiveChannel is a KotlinxCoroutinesReceiveChannel plus receiveSync and receiveAsync which enables idiomatic usage from Java code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classReceiveChannel.Companion
-
Method Summary
Modifier and Type Method Description EreceiveSync()Synchronously receive the next element from this channel. CompletableFuture<out E>receiveAsync()Asynchronously receive the next element from this channel. abstract BooleangetIsClosedForReceive()abstract BooleangetIsEmpty()abstract SelectClause1<E>getOnReceive()abstract SelectClause1<ChannelResult<E>>getOnReceiveCatching()SelectClause1<E>getOnReceiveOrNull()-
Methods inherited from class io.github.cfraser.connekt.api.ReceiveChannel
cancel, cancel, cancel, iterator, poll, receive, receiveCatching, receiveOrNull, tryReceive -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
receiveSync
E receiveSync()
Synchronously receive the next element from this channel.
-
receiveAsync
CompletableFuture<out E> receiveAsync()
Asynchronously receive the next element from this channel.
-
getIsClosedForReceive
abstract Boolean getIsClosedForReceive()
-
getIsEmpty
abstract Boolean getIsEmpty()
-
getOnReceive
abstract SelectClause1<E> getOnReceive()
-
getOnReceiveCatching
abstract SelectClause1<ChannelResult<E>> getOnReceiveCatching()
-
getOnReceiveOrNull
SelectClause1<E> getOnReceiveOrNull()
-
-
-
-