Sha256: 8d02661d0de262dd2d6ae4cdd1c3b2e78c7d057765e8a77f9955aa01dc8d9a82
Contents?: true
Size: 495 Bytes
Versions: 1
Compression:
Stored size: 495 Bytes
Contents
# frozen_string_literal: true # This is a simple implementation of an in memory queue using an array. module DispatchRider module QueueServices class Simple < Base def assign_storage(_attrs) [] end def insert(item) queue << item end def raw_head queue.first end def construct_message_from(item) deserialize(item) end delegate :delete, to: :queue delegate :size, to: :queue end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dispatch-rider-2.2.0 | lib/dispatch-rider/queue_services/simple.rb |