using System;
using System.Threading.Tasks;
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMemberInSuper.Global
namespace Tapeti
{
///
/// Manages subscriptions to queues as configured by the bindings.
///
public interface ISubscriber : IAsyncDisposable, IDisposable
{
///
/// Starts consuming from the subscribed queues if not already started.
///
Task Resume();
///
/// Stops consuming from the subscribed queues.
///
Task Stop();
}
}