Beispiel #1
0
 public Task EnqueueMessageAndWaitUntilSentAsync(IMemoryOwner <byte> message, CancellationToken cancellationToken = default) =>
 EnqueueMessageAndWaitUntilSentAsync(PendingMessage.CreateAwaitable(message, cancellationToken), cancellationToken);
Beispiel #2
0
 public ValueTask EnqueueMessageAsync(IMemoryOwner <byte> message, CancellationToken cancellationToken = default) =>
 EnqueueMessageAsync(PendingMessage.Create(message, cancellationToken), cancellationToken);
Beispiel #3
0
 public void EnqueueMessage(ReadOnlyMemory <byte> message) =>
 EnqueueMessage(PendingMessage.Create(message));
Beispiel #4
0
 public void EnqueueMessage(IMemoryOwner <byte> message) =>
 EnqueueMessage(PendingMessage.Create(message));
Beispiel #5
0
 public ValueTask EnqueueMessagesAsync(IEnumerable <IMemoryOwner <byte> > messages, CancellationToken cancellationToken = default) =>
 ValueTaskEx.WhenAll(messages.Select(message => EnqueueMessageAsync(PendingMessage.Create(message, cancellationToken), cancellationToken)));