File: limited_queue.rb

package info (click to toggle)
ruby-async 2.36.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 400 kB
  • sloc: ruby: 1,938; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 321 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2025, by Samuel Williams.

# The implementation lives in `queue.rb` but later we may move it here for better autoload/inference.
require_relative "queue"

module Async
	class LimitedQueue < Queue
		singleton_class.remove_method(:new)
	end
end