Package 

Interface ReceiveChannel

  • 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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      E receiveSync() Synchronously receive the next element from this channel.
      CompletableFuture<out E> receiveAsync() Asynchronously receive the next element from this channel.
      abstract Boolean getIsClosedForReceive()
      abstract Boolean getIsEmpty()
      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