Interface IChannelReceiver
Defines a channel receiver for consuming messages.
public interface IChannelReceiver
- Extension Methods
Methods
ReceiveAsync<T>(CancellationToken)
Receives a message asynchronously from the channel.
Task<T?> ReceiveAsync<T>(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task<T>
A Task<TResult> representing the result of the asynchronous operation.
Type Parameters
TThe type of message to receive.