using System.Collections.Concurrent;
using System.Collections.Generic;
namespace ZeroLevel.Services.Async
{
///
/// Represents a thread-safe stack that allows asynchronous consuming.
///
/// The type of the items contained in the stack.
public class AsyncStack
: AsyncCollection
{
///
/// Initializes a new empty instance of .
///
public AsyncStack() : base(new ConcurrentStack()) { }
///
/// Initializes a new instance of that contains elements copied from a specified collection.
///
/// The collection whose elements are copied to the new stack.
public AsyncStack(IEnumerable collection) : base(new ConcurrentStack(collection)) { }
}
}