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