Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: T Read()

  • Declared in: RT.KitchenSink.Channel<T>

Declaration

public T Read()

Summary

Reads an element from the channel. If no element is waiting to be read, blocks until an element is received or the channel is closed.

Returns

The element read from the channel.

Exceptions

  • System.InvalidOperationException
    The end of the channel has been reached. There are no more elements waiting.

Remarks

If multiple threads call this method to wait for elements, each element is received by only one thread.