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