Exemplo n.º 1
0
 public async ValueTask DisposeAsync()
 {
     if (_producer != null)
     {
         await _producer.DisposeAsync().ConfigureAwait(false);
     }
 }
        public async ValueTask DisposeAsync()
        {
            _cts.Cancel();
            _cts.Dispose();
            await _consumerLoopTask;
            await _consumer.DisposeAsync();

            await _producer.DisposeAsync();

            await _connection.DisposeAsync();
        }
 protected override ValueTask DisposeUnderlyingProducer()
 {
     return(_producer.DisposeAsync());
 }
Exemplo n.º 4
0
 public void Dispose()
 {
     _publisher?.DisposeAsync();
 }