public Task EnqueueMessageAndWaitUntilSentAsync(IMemoryOwner <byte> message, CancellationToken cancellationToken = default) => EnqueueMessageAndWaitUntilSentAsync(PendingMessage.CreateAwaitable(message, cancellationToken), cancellationToken);
public ValueTask EnqueueMessageAsync(IMemoryOwner <byte> message, CancellationToken cancellationToken = default) => EnqueueMessageAsync(PendingMessage.Create(message, cancellationToken), cancellationToken);
public void EnqueueMessage(ReadOnlyMemory <byte> message) => EnqueueMessage(PendingMessage.Create(message));
public void EnqueueMessage(IMemoryOwner <byte> message) => EnqueueMessage(PendingMessage.Create(message));
public ValueTask EnqueueMessagesAsync(IEnumerable <IMemoryOwner <byte> > messages, CancellationToken cancellationToken = default) => ValueTaskEx.WhenAll(messages.Select(message => EnqueueMessageAsync(PendingMessage.Create(message, cancellationToken), cancellationToken)));