Queue abstraction for Ruby.