clean-architecture 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rspec.yml +21 -0
  3. data/.gitignore +1 -0
  4. data/.ruby-version +1 -1
  5. data/CHANGELOG.md +42 -0
  6. data/Gemfile +1 -0
  7. data/README.md +423 -4
  8. data/clean-architecture.gemspec +9 -5
  9. data/generate_require_files.rb +1 -0
  10. data/lib/clean-architecture.rb +1 -0
  11. data/lib/clean_architecture/adapters/all.rb +1 -0
  12. data/lib/clean_architecture/adapters/attribute_hash_base.rb +1 -0
  13. data/lib/clean_architecture/all.rb +3 -0
  14. data/lib/clean_architecture/builders/abstract_active_record_entity_builder.rb +124 -0
  15. data/lib/clean_architecture/builders/all.rb +6 -0
  16. data/lib/clean_architecture/checks/all.rb +1 -0
  17. data/lib/clean_architecture/checks/authorization.rb +1 -0
  18. data/lib/clean_architecture/entities/all.rb +1 -0
  19. data/lib/clean_architecture/entities/failure_details.rb +2 -1
  20. data/lib/clean_architecture/entities/targeted_parameters.rb +1 -0
  21. data/lib/clean_architecture/entities/untargeted_parameters.rb +1 -0
  22. data/lib/clean_architecture/interfaces/all.rb +1 -0
  23. data/lib/clean_architecture/interfaces/authorization_parameters.rb +1 -0
  24. data/lib/clean_architecture/interfaces/base_parameters.rb +1 -0
  25. data/lib/clean_architecture/interfaces/jsonable.rb +1 -0
  26. data/lib/clean_architecture/interfaces/success_payload.rb +1 -0
  27. data/lib/clean_architecture/interfaces/targeted_parameters.rb +1 -0
  28. data/lib/clean_architecture/interfaces/use_case.rb +1 -0
  29. data/lib/clean_architecture/interfaces/use_case_actor.rb +1 -0
  30. data/lib/clean_architecture/interfaces/use_case_target.rb +1 -0
  31. data/lib/clean_architecture/matchers/all.rb +1 -0
  32. data/lib/clean_architecture/matchers/use_case_result.rb +1 -0
  33. data/lib/clean_architecture/queries/all.rb +1 -0
  34. data/lib/clean_architecture/queries/http_failure_code.rb +1 -0
  35. data/lib/clean_architecture/queries/http_success_code.rb +1 -0
  36. data/lib/clean_architecture/serializers/all.rb +1 -0
  37. data/lib/clean_architecture/serializers/html_response_from_result.rb +1 -0
  38. data/lib/clean_architecture/serializers/json_response_from_result.rb +1 -0
  39. data/lib/clean_architecture/serializers/success_collection_payload.rb +1 -0
  40. data/lib/clean_architecture/serializers/success_payload.rb +1 -0
  41. data/lib/clean_architecture/types.rb +2 -1
  42. data/lib/clean_architecture/use_cases/abstract_use_case.rb +62 -0
  43. data/lib/clean_architecture/use_cases/all.rb +10 -0
  44. data/lib/clean_architecture/use_cases/contract.rb +9 -0
  45. data/lib/clean_architecture/use_cases/errors.rb +57 -0
  46. data/lib/clean_architecture/use_cases/form.rb +116 -0
  47. data/lib/clean_architecture/use_cases/parameters.rb +42 -0
  48. data/lib/clean_architecture/version.rb +2 -1
  49. data/sorbet/config +2 -0
  50. data/sorbet/rbi/gems/activemodel.rbi +74 -0
  51. data/sorbet/rbi/gems/activesupport.rbi +440 -0
  52. data/sorbet/rbi/gems/ast.rbi +47 -0
  53. data/sorbet/rbi/gems/axiom-types.rbi +159 -0
  54. data/sorbet/rbi/gems/byebug.rbi +1039 -0
  55. data/sorbet/rbi/gems/codeclimate-engine-rb.rbi +123 -0
  56. data/sorbet/rbi/gems/coderay.rbi +91 -0
  57. data/sorbet/rbi/gems/coercible.rbi +156 -0
  58. data/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
  59. data/sorbet/rbi/gems/descendants_tracker.rbi +17 -0
  60. data/sorbet/rbi/gems/docile.rbi +31 -0
  61. data/sorbet/rbi/gems/dry-configurable.rbi +89 -0
  62. data/sorbet/rbi/gems/dry-container.rbi +88 -0
  63. data/sorbet/rbi/gems/dry-core.rbi +79 -0
  64. data/sorbet/rbi/gems/dry-equalizer.rbi +25 -0
  65. data/sorbet/rbi/gems/dry-inflector.rbi +72 -0
  66. data/sorbet/rbi/gems/dry-initializer.rbi +209 -0
  67. data/sorbet/rbi/gems/dry-logic.rbi +304 -0
  68. data/sorbet/rbi/gems/dry-matcher.rbi +33 -0
  69. data/sorbet/rbi/gems/dry-monads.rbi +508 -0
  70. data/sorbet/rbi/gems/dry-schema.rbi +790 -0
  71. data/sorbet/rbi/gems/dry-struct.rbi +165 -0
  72. data/sorbet/rbi/gems/dry-types.rbi +688 -0
  73. data/sorbet/rbi/gems/dry-validation.rbi +284 -0
  74. data/sorbet/rbi/gems/duckface-interfaces.rbi +93 -0
  75. data/sorbet/rbi/gems/equalizer.rbi +22 -0
  76. data/sorbet/rbi/gems/i18n.rbi +132 -0
  77. data/sorbet/rbi/gems/ice_nine.rbi +66 -0
  78. data/sorbet/rbi/gems/jaro_winkler.rbi +14 -0
  79. data/sorbet/rbi/gems/kwalify.rbi +339 -0
  80. data/sorbet/rbi/gems/method_source.rbi +63 -0
  81. data/sorbet/rbi/gems/parallel.rbi +81 -0
  82. data/sorbet/rbi/gems/parser.rbi +1293 -0
  83. data/sorbet/rbi/gems/pry-byebug.rbi +149 -0
  84. data/sorbet/rbi/gems/pry.rbi +1964 -0
  85. data/sorbet/rbi/gems/psych.rbi +462 -0
  86. data/sorbet/rbi/gems/rainbow.rbi +117 -0
  87. data/sorbet/rbi/gems/rake.rbi +634 -0
  88. data/sorbet/rbi/gems/rb-readline.rbi +766 -0
  89. data/sorbet/rbi/gems/reek.rbi +1066 -0
  90. data/sorbet/rbi/gems/rspec-core.rbi +1658 -0
  91. data/sorbet/rbi/gems/rspec-expectations.rbi +430 -0
  92. data/sorbet/rbi/gems/rspec-mocks.rbi +815 -0
  93. data/sorbet/rbi/gems/rspec-support.rbi +268 -0
  94. data/sorbet/rbi/gems/rspec.rbi +14 -0
  95. data/sorbet/rbi/gems/rubocop-rspec.rbi +875 -0
  96. data/sorbet/rbi/gems/rubocop.rbi +7014 -0
  97. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  98. data/sorbet/rbi/gems/simplecov-html.rbi +30 -0
  99. data/sorbet/rbi/gems/simplecov.rbi +225 -0
  100. data/sorbet/rbi/gems/stackprof.rbi +51 -0
  101. data/sorbet/rbi/gems/thread_safe.rbi +81 -0
  102. data/sorbet/rbi/gems/timecop.rbi +97 -0
  103. data/sorbet/rbi/gems/unicode-display_width.rbi +16 -0
  104. data/sorbet/rbi/gems/virtus.rbi +421 -0
  105. data/sorbet/rbi/hidden-definitions/errors.txt +7332 -0
  106. data/sorbet/rbi/hidden-definitions/hidden.rbi +17521 -0
  107. data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +422 -0
  108. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +23 -0
  109. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +625 -0
  110. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8684 -0
  111. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +99 -0
  112. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +254 -0
  113. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
  114. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
  115. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
  116. data/sorbet/rbi/todo.rbi +12 -0
  117. metadata +156 -24
  118. data/Gemfile.lock +0 -187
@@ -0,0 +1,123 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/codeclimate-engine-rb/all/codeclimate-engine-rb.rbi
9
+ #
10
+ # codeclimate-engine-rb-0.4.1
11
+ module CCEngine
12
+ end
13
+ class CCEngine::Issue
14
+ def content_hash; end
15
+ def fingerprint_hash; end
16
+ def remediation_points_hash; end
17
+ def render; end
18
+ def self.attribute(name, type = nil, options = nil); end
19
+ def to_hash; end
20
+ def to_json; end
21
+ extend Virtus::ClassMethods
22
+ extend Virtus::Extensions::AllowedWriterMethods
23
+ include Anonymous_Module_46
24
+ include Anonymous_Virtus_AttributeSet_45
25
+ include Virtus::ClassInclusions::Methods
26
+ include Virtus::InstanceMethods
27
+ include Virtus::InstanceMethods::Constructor
28
+ include Virtus::InstanceMethods::MassAssignment
29
+ include Virtus::Model::Constructor
30
+ include Virtus::Model::Core
31
+ include Virtus::Model::MassAssignment
32
+ end
33
+ module Anonymous_Module_46
34
+ def self.extended(object); end
35
+ def self.included(object); end
36
+ end
37
+ module Anonymous_Virtus_AttributeSet_45
38
+ def categories; end
39
+ def categories=(value); end
40
+ def check_name; end
41
+ def check_name=(value); end
42
+ def content; end
43
+ def content=(value); end
44
+ def description; end
45
+ def description=(value); end
46
+ def fingerprint; end
47
+ def fingerprint=(value); end
48
+ def location; end
49
+ def location=(value); end
50
+ def remediation_points; end
51
+ def remediation_points=(value); end
52
+ end
53
+ module CCEngine::Location
54
+ end
55
+ class CCEngine::Location::LineRange
56
+ def self.attribute(name, type = nil, options = nil); end
57
+ def to_hash; end
58
+ extend Virtus::ClassMethods
59
+ extend Virtus::Extensions::AllowedWriterMethods
60
+ include Anonymous_Module_48
61
+ include Anonymous_Virtus_AttributeSet_47
62
+ include Virtus::ClassInclusions::Methods
63
+ include Virtus::InstanceMethods
64
+ include Virtus::InstanceMethods::Constructor
65
+ include Virtus::InstanceMethods::MassAssignment
66
+ include Virtus::Model::Constructor
67
+ include Virtus::Model::Core
68
+ include Virtus::Model::MassAssignment
69
+ end
70
+ module Anonymous_Module_48
71
+ def self.extended(object); end
72
+ def self.included(object); end
73
+ end
74
+ module Anonymous_Virtus_AttributeSet_47
75
+ def line_range; end
76
+ def line_range=(value); end
77
+ def path; end
78
+ def path=(value); end
79
+ end
80
+ class CCEngine::Location::Position
81
+ def self.attribute(name, type = nil, options = nil); end
82
+ def to_hash; end
83
+ extend Virtus::ClassMethods
84
+ extend Virtus::Extensions::AllowedWriterMethods
85
+ include Anonymous_Module_50
86
+ include Anonymous_Virtus_AttributeSet_49
87
+ include Virtus::ClassInclusions::Methods
88
+ include Virtus::InstanceMethods
89
+ include Virtus::InstanceMethods::Constructor
90
+ include Virtus::InstanceMethods::MassAssignment
91
+ include Virtus::Model::Constructor
92
+ include Virtus::Model::Core
93
+ include Virtus::Model::MassAssignment
94
+ end
95
+ module Anonymous_Module_50
96
+ def self.extended(object); end
97
+ def self.included(object); end
98
+ end
99
+ module Anonymous_Virtus_AttributeSet_49
100
+ def end_position; end
101
+ def end_position=(value); end
102
+ def path; end
103
+ def path=(value); end
104
+ def start_position; end
105
+ def start_position=(value); end
106
+ end
107
+ module CCEngine::Category
108
+ def self.bug_risk; end
109
+ def self.clarity; end
110
+ def self.compatibility; end
111
+ def self.complexity; end
112
+ def self.duplication; end
113
+ def self.security; end
114
+ def self.style; end
115
+ end
116
+ class CCEngine::Config
117
+ def enabled?; end
118
+ def exclude_paths; end
119
+ def include_paths; end
120
+ def initialize(json_string); end
121
+ def json_string; end
122
+ def parsed_json; end
123
+ end
@@ -0,0 +1,91 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/coderay/all/coderay.rbi
9
+ #
10
+ # coderay-1.1.2
11
+ module CodeRay
12
+ def self.coderay_path(*path); end
13
+ def self.encode(code, lang, format, options = nil); end
14
+ def self.encode_file(filename, format, options = nil); end
15
+ def self.encode_tokens(tokens, format, options = nil); end
16
+ def self.encoder(format, options = nil); end
17
+ def self.get_scanner_options(options); end
18
+ def self.highlight(code, lang, options = nil, format = nil); end
19
+ def self.highlight_file(filename, options = nil, format = nil); end
20
+ def self.scan(code, lang, options = nil, &block); end
21
+ def self.scan_file(filename, lang = nil, options = nil, &block); end
22
+ def self.scanner(lang, options = nil, &block); end
23
+ end
24
+ module CodeRay::PluginHost
25
+ def [](id, *args, &blk); end
26
+ def all_plugins; end
27
+ def const_missing(const); end
28
+ def default(id = nil); end
29
+ def list; end
30
+ def load(id, *args, &blk); end
31
+ def load_all; end
32
+ def load_plugin_map; end
33
+ def make_plugin_hash; end
34
+ def map(hash); end
35
+ def path_to(plugin_id); end
36
+ def plugin_hash; end
37
+ def plugin_path(*args); end
38
+ def register(plugin, id); end
39
+ def self.extended(mod); end
40
+ def validate_id(id); end
41
+ end
42
+ class CodeRay::PluginHost::PluginNotFound < LoadError
43
+ end
44
+ class CodeRay::PluginHost::HostNotFound < LoadError
45
+ end
46
+ module CodeRay::Encoders
47
+ extend CodeRay::PluginHost
48
+ end
49
+ module CodeRay::Plugin
50
+ def aliases; end
51
+ def plugin_host(host = nil); end
52
+ def plugin_id; end
53
+ def register_for(id); end
54
+ def title(title = nil); end
55
+ end
56
+ class CodeRay::Encoders::Encoder
57
+ def <<(token); end
58
+ def begin_group(kind); end
59
+ def begin_line(kind); end
60
+ def compile(tokens, options = nil); end
61
+ def encode(code, lang, options = nil); end
62
+ def encode_tokens(tokens, options = nil); end
63
+ def end_group(kind); end
64
+ def end_line(kind); end
65
+ def file_extension; end
66
+ def finish(options); end
67
+ def get_output(options); end
68
+ def highlight(code, lang, options = nil); end
69
+ def initialize(options = nil); end
70
+ def options; end
71
+ def options=(arg0); end
72
+ def output(data); end
73
+ def scanner; end
74
+ def scanner=(arg0); end
75
+ def self.const_missing(sym); end
76
+ def self.file_extension; end
77
+ def setup(options); end
78
+ def text_token(text, kind); end
79
+ def token(content, kind); end
80
+ def tokens(tokens, options = nil); end
81
+ extend CodeRay::Plugin
82
+ end
83
+ class CodeRay::Encoders::Terminal < CodeRay::Encoders::Encoder
84
+ def begin_group(kind); end
85
+ def begin_line(kind); end
86
+ def end_group(kind); end
87
+ def end_line(kind); end
88
+ def open_token(kind); end
89
+ def setup(options); end
90
+ def text_token(text, kind); end
91
+ end
@@ -0,0 +1,156 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/coercible/all/coercible.rbi
9
+ #
10
+ # coercible-1.0.0
11
+ module Coercible
12
+ def self.rbx?; end
13
+ end
14
+ module Coercible::Options
15
+ def accept_options(*new_options); end
16
+ def accepted_options; end
17
+ def add_accepted_options(new_options); end
18
+ def define_option_method(option); end
19
+ def inherited(descendant); end
20
+ def options; end
21
+ def self.extended(descendant); end
22
+ def set_options(new_options); end
23
+ end
24
+ class Coercible::Options::Undefined
25
+ end
26
+ module Coercible::TypeLookup
27
+ def determine_type(class_or_name); end
28
+ def determine_type_and_cache(class_or_name); end
29
+ def determine_type_from_descendant(descendant); end
30
+ def determine_type_from_primitive(primitive); end
31
+ def determine_type_from_string(string); end
32
+ def primitive; end
33
+ def self.extended(model); end
34
+ end
35
+ class Coercible::Configuration
36
+ def self.build(keys, &block); end
37
+ end
38
+ class Coercible::Coercer
39
+ def [](klass); end
40
+ def coercers; end
41
+ def config; end
42
+ def config_for(coercer); end
43
+ def initialize(config, coercers = nil); end
44
+ def initialize_coercer(klass); end
45
+ def self.config_keys; end
46
+ def self.configurable_coercers(&block); end
47
+ def self.new(&block); end
48
+ end
49
+ module Coercible::Coercer::Configurable
50
+ def config(&block); end
51
+ def config_name; end
52
+ def configuration_class; end
53
+ def self.extended(coercer); end
54
+ end
55
+ class Coercible::Coercer::Object
56
+ def coerce_with_method(value, method, ref_method); end
57
+ def coerced?(value); end
58
+ def coercers; end
59
+ def initialize(coercers = nil); end
60
+ def inspect; end
61
+ def method_missing(method, *args); end
62
+ def raise_unsupported_coercion(value, method); end
63
+ def self.primitive(value = nil); end
64
+ def to_array(value); end
65
+ def to_hash(value); end
66
+ def to_integer(value); end
67
+ def to_string(value); end
68
+ extend Coercible::TypeLookup
69
+ extend DescendantsTracker
70
+ end
71
+ class Coercible::Coercer::Numeric < Coercible::Coercer::Object
72
+ def to_decimal(value); end
73
+ def to_float(value); end
74
+ def to_integer(value); end
75
+ def to_string(value); end
76
+ end
77
+ class Coercible::Coercer::Float < Coercible::Coercer::Numeric
78
+ def to_datetime(value); end
79
+ def to_float(value); end
80
+ end
81
+ class Coercible::Coercer::Integer < Coercible::Coercer::Numeric
82
+ def boolean_map; end
83
+ def datetime_format; end
84
+ def datetime_proc; end
85
+ def initialize(coercer = nil, config = nil); end
86
+ def self.config; end
87
+ def self.config_keys(value = nil); end
88
+ def to_boolean(value); end
89
+ def to_datetime(value); end
90
+ def to_integer(value); end
91
+ def to_string(value); end
92
+ extend Coercible::Coercer::Configurable
93
+ end
94
+ class Coercible::Coercer::Decimal < Coercible::Coercer::Numeric
95
+ def to_decimal(value); end
96
+ def to_string(value); end
97
+ end
98
+ class Coercible::Coercer::String < Coercible::Coercer::Object
99
+ def boolean_map; end
100
+ def constant_lookup(mod, name); end
101
+ def initialize(coercer = nil, config = nil); end
102
+ def parse_value(parser, value, method); end
103
+ def self.config; end
104
+ def self.config_keys(value = nil); end
105
+ def to_boolean(value); end
106
+ def to_constant(value); end
107
+ def to_date(value); end
108
+ def to_datetime(value); end
109
+ def to_decimal(value); end
110
+ def to_float(value); end
111
+ def to_integer(value); end
112
+ def to_numeric(value, method); end
113
+ def to_symbol(value); end
114
+ def to_time(value); end
115
+ extend Coercible::Coercer::Configurable
116
+ end
117
+ class Coercible::Coercer::Symbol < Coercible::Coercer::Object
118
+ def to_string(value); end
119
+ end
120
+ module Coercible::Coercer::TimeCoercions
121
+ def coerce_with_method(value, method); end
122
+ def to_date(value); end
123
+ def to_datetime(value); end
124
+ def to_string(value); end
125
+ def to_time(value); end
126
+ end
127
+ class Coercible::Coercer::Date < Coercible::Coercer::Object
128
+ def to_date(value); end
129
+ include Coercible::Coercer::TimeCoercions
130
+ end
131
+ class Coercible::Coercer::DateTime < Coercible::Coercer::Object
132
+ def to_datetime(value); end
133
+ include Coercible::Coercer::TimeCoercions
134
+ end
135
+ class Coercible::Coercer::Time < Coercible::Coercer::Object
136
+ def to_integer(value); end
137
+ def to_time(value); end
138
+ include Coercible::Coercer::TimeCoercions
139
+ end
140
+ class Coercible::Coercer::FalseClass < Coercible::Coercer::Object
141
+ def to_string(value); end
142
+ end
143
+ class Coercible::Coercer::TrueClass < Coercible::Coercer::Object
144
+ def to_string(value); end
145
+ end
146
+ class Coercible::Coercer::Array < Coercible::Coercer::Object
147
+ def to_set(value); end
148
+ end
149
+ class Coercible::Coercer::Hash < Coercible::Coercer::Object
150
+ def extract(value); end
151
+ def to_date(value); end
152
+ def to_datetime(value); end
153
+ def to_time(value); end
154
+ end
155
+ class Coercible::UnsupportedCoercion < StandardError
156
+ end
@@ -0,0 +1,1587 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/concurrent-ruby/all/concurrent-ruby.rbi
9
+ #
10
+ # concurrent-ruby-1.1.5
11
+ module Concurrent
12
+ def abort_transaction; end
13
+ def atomically; end
14
+ def call_dataflow(method, executor, *inputs, &block); end
15
+ def dataflow!(*inputs, &block); end
16
+ def dataflow(*inputs, &block); end
17
+ def dataflow_with!(executor, *inputs, &block); end
18
+ def dataflow_with(executor, *inputs, &block); end
19
+ def leave_transaction; end
20
+ def monotonic_time; end
21
+ def self.abort_transaction; end
22
+ def self.atomically; end
23
+ def self.call_dataflow(method, executor, *inputs, &block); end
24
+ def self.create_simple_logger(level = nil, output = nil); end
25
+ def self.create_stdlib_logger(level = nil, output = nil); end
26
+ def self.dataflow!(*inputs, &block); end
27
+ def self.dataflow(*inputs, &block); end
28
+ def self.dataflow_with!(executor, *inputs, &block); end
29
+ def self.dataflow_with(executor, *inputs, &block); end
30
+ def self.disable_at_exit_handlers!; end
31
+ def self.executor(executor_identifier); end
32
+ def self.global_fast_executor; end
33
+ def self.global_immediate_executor; end
34
+ def self.global_io_executor; end
35
+ def self.global_logger; end
36
+ def self.global_logger=(value); end
37
+ def self.global_timer_set; end
38
+ def self.leave_transaction; end
39
+ def self.monotonic_time; end
40
+ def self.new_fast_executor(opts = nil); end
41
+ def self.new_io_executor(opts = nil); end
42
+ def self.physical_processor_count; end
43
+ def self.processor_count; end
44
+ def self.processor_counter; end
45
+ def self.use_simple_logger(level = nil, output = nil); end
46
+ def self.use_stdlib_logger(level = nil, output = nil); end
47
+ extend Concurrent::Concern::Logging
48
+ extend Concurrent::Utility::EngineDetector
49
+ extend Concurrent::Utility::NativeExtensionLoader
50
+ end
51
+ module Concurrent::Utility
52
+ end
53
+ module Concurrent::Utility::EngineDetector
54
+ def on_cruby?; end
55
+ def on_jruby?; end
56
+ def on_jruby_9000?; end
57
+ def on_linux?; end
58
+ def on_osx?; end
59
+ def on_rbx?; end
60
+ def on_truffleruby?; end
61
+ def on_windows?; end
62
+ def ruby_engine; end
63
+ def ruby_version(version = nil, comparison, major, minor, patch); end
64
+ end
65
+ module Concurrent::Synchronization
66
+ end
67
+ class Concurrent::Synchronization::AbstractObject
68
+ def full_memory_barrier; end
69
+ def initialize; end
70
+ def self.attr_volatile(*names); end
71
+ end
72
+ module Concurrent::Utility::NativeExtensionLoader
73
+ def allow_c_extensions?; end
74
+ def c_extensions_loaded?; end
75
+ def java_extensions_loaded?; end
76
+ def load_error_path(error); end
77
+ def load_native_extensions; end
78
+ def set_c_extensions_loaded; end
79
+ def set_java_extensions_loaded; end
80
+ def try_load_c_extension(path); end
81
+ end
82
+ module Concurrent::Synchronization::MriAttrVolatile
83
+ def full_memory_barrier; end
84
+ def self.included(base); end
85
+ end
86
+ module Concurrent::Synchronization::MriAttrVolatile::ClassMethods
87
+ def attr_volatile(*names); end
88
+ end
89
+ class Concurrent::Synchronization::MriObject < Concurrent::Synchronization::AbstractObject
90
+ def initialize; end
91
+ extend Concurrent::Synchronization::MriAttrVolatile::ClassMethods
92
+ include Concurrent::Synchronization::MriAttrVolatile
93
+ end
94
+ module Concurrent::Synchronization::RbxAttrVolatile
95
+ def full_memory_barrier; end
96
+ def self.included(base); end
97
+ end
98
+ module Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
99
+ def attr_volatile(*names); end
100
+ end
101
+ class Concurrent::Synchronization::RbxObject < Concurrent::Synchronization::AbstractObject
102
+ def initialize; end
103
+ extend Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
104
+ include Concurrent::Synchronization::RbxAttrVolatile
105
+ end
106
+ module Concurrent::Synchronization::TruffleRubyAttrVolatile
107
+ def full_memory_barrier; end
108
+ def self.included(base); end
109
+ end
110
+ module Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
111
+ def attr_volatile(*names); end
112
+ end
113
+ class Concurrent::Synchronization::TruffleRubyObject < Concurrent::Synchronization::AbstractObject
114
+ def initialize; end
115
+ extend Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
116
+ include Concurrent::Synchronization::TruffleRubyAttrVolatile
117
+ end
118
+ class Concurrent::Synchronization::Object < Concurrent::Synchronization::MriObject
119
+ def __initialize_atomic_fields__; end
120
+ def initialize; end
121
+ def self.atomic_attribute?(name); end
122
+ def self.atomic_attributes(inherited = nil); end
123
+ def self.attr_atomic(*names); end
124
+ def self.define_initialize_atomic_fields; end
125
+ def self.ensure_safe_initialization_when_final_fields_are_present; end
126
+ def self.safe_initialization!; end
127
+ def self.safe_initialization?; end
128
+ end
129
+ class Concurrent::Synchronization::AbstractLockableObject < Concurrent::Synchronization::Object
130
+ def ns_broadcast; end
131
+ def ns_signal; end
132
+ def ns_wait(timeout = nil); end
133
+ def ns_wait_until(timeout = nil, &condition); end
134
+ def synchronize; end
135
+ end
136
+ module Concurrent::Synchronization::ConditionSignalling
137
+ def ns_broadcast; end
138
+ def ns_signal; end
139
+ end
140
+ class Concurrent::Synchronization::MutexLockableObject < Concurrent::Synchronization::AbstractLockableObject
141
+ def initialize(*defaults); end
142
+ def ns_wait(timeout = nil); end
143
+ def self.new(*args, &block); end
144
+ def synchronize; end
145
+ include Concurrent::Synchronization::ConditionSignalling
146
+ end
147
+ class Concurrent::Synchronization::MonitorLockableObject < Concurrent::Synchronization::AbstractLockableObject
148
+ def initialize(*defaults); end
149
+ def ns_wait(timeout = nil); end
150
+ def self.new(*args, &block); end
151
+ def synchronize; end
152
+ include Concurrent::Synchronization::ConditionSignalling
153
+ end
154
+ class Concurrent::Synchronization::RbxLockableObject < Concurrent::Synchronization::AbstractLockableObject
155
+ def initialize(*defaults); end
156
+ def ns_broadcast; end
157
+ def ns_signal; end
158
+ def ns_wait(timeout = nil); end
159
+ def self.new(*args, &block); end
160
+ def synchronize(&block); end
161
+ end
162
+ class Concurrent::Synchronization::LockableObject < Concurrent::Synchronization::MutexLockableObject
163
+ def new_condition; end
164
+ end
165
+ class Concurrent::Synchronization::Condition < Concurrent::Synchronization::LockableObject
166
+ def broadcast; end
167
+ def initialize(lock); end
168
+ def ns_broadcast; end
169
+ def ns_signal; end
170
+ def ns_wait(timeout = nil); end
171
+ def ns_wait_until(timeout = nil, &condition); end
172
+ def self.new(*args, &block); end
173
+ def self.private_new(*args, &block); end
174
+ def signal; end
175
+ def wait(timeout = nil); end
176
+ def wait_until(timeout = nil, &condition); end
177
+ end
178
+ class Concurrent::Synchronization::Lock < Concurrent::Synchronization::LockableObject
179
+ def broadcast; end
180
+ def ns_broadcast; end
181
+ def ns_signal; end
182
+ def ns_wait(timeout = nil); end
183
+ def ns_wait_until(timeout = nil, &condition); end
184
+ def signal; end
185
+ def synchronize; end
186
+ def wait(timeout = nil); end
187
+ def wait_until(timeout = nil, &condition); end
188
+ end
189
+ module Concurrent::Collection
190
+ end
191
+ class Concurrent::Collection::NonConcurrentMapBackend
192
+ def [](key); end
193
+ def []=(key, value); end
194
+ def _get(key); end
195
+ def _set(key, value); end
196
+ def clear; end
197
+ def compute(key); end
198
+ def compute_if_absent(key); end
199
+ def compute_if_present(key); end
200
+ def delete(key); end
201
+ def delete_pair(key, value); end
202
+ def dupped_backend; end
203
+ def each_pair; end
204
+ def get_and_set(key, value); end
205
+ def get_or_default(key, default_value); end
206
+ def initialize(options = nil); end
207
+ def initialize_copy(other); end
208
+ def key?(key); end
209
+ def merge_pair(key, value); end
210
+ def pair?(key, expected_value); end
211
+ def replace_if_exists(key, new_value); end
212
+ def replace_pair(key, old_value, new_value); end
213
+ def size; end
214
+ def store_computed_value(key, new_value); end
215
+ end
216
+ class Concurrent::Collection::MriMapBackend < Concurrent::Collection::NonConcurrentMapBackend
217
+ def []=(key, value); end
218
+ def clear; end
219
+ def compute(key); end
220
+ def compute_if_absent(key); end
221
+ def compute_if_present(key); end
222
+ def delete(key); end
223
+ def delete_pair(key, value); end
224
+ def get_and_set(key, value); end
225
+ def initialize(options = nil); end
226
+ def merge_pair(key, value); end
227
+ def replace_if_exists(key, new_value); end
228
+ def replace_pair(key, old_value, new_value); end
229
+ end
230
+ class Concurrent::Map < Concurrent::Collection::MriMapBackend
231
+ def [](key); end
232
+ def each; end
233
+ def each_key; end
234
+ def each_pair; end
235
+ def each_value; end
236
+ def empty?; end
237
+ def fetch(key, default_value = nil); end
238
+ def fetch_or_store(key, default_value = nil); end
239
+ def get(key); end
240
+ def initialize(options = nil, &block); end
241
+ def initialize_copy(other); end
242
+ def inspect; end
243
+ def key(value); end
244
+ def keys; end
245
+ def marshal_dump; end
246
+ def marshal_load(hash); end
247
+ def populate_from(hash); end
248
+ def put(key, value); end
249
+ def put_if_absent(key, value); end
250
+ def raise_fetch_no_key; end
251
+ def validate_options_hash!(options); end
252
+ def value?(value); end
253
+ def values; end
254
+ end
255
+ class Concurrent::Error < StandardError
256
+ end
257
+ class Concurrent::ConfigurationError < Concurrent::Error
258
+ end
259
+ class Concurrent::CancelledOperationError < Concurrent::Error
260
+ end
261
+ class Concurrent::LifecycleError < Concurrent::Error
262
+ end
263
+ class Concurrent::ImmutabilityError < Concurrent::Error
264
+ end
265
+ class Concurrent::IllegalOperationError < Concurrent::Error
266
+ end
267
+ class Concurrent::InitializationError < Concurrent::Error
268
+ end
269
+ class Concurrent::MaxRestartFrequencyError < Concurrent::Error
270
+ end
271
+ class Concurrent::MultipleAssignmentError < Concurrent::Error
272
+ def initialize(message = nil, inspection_data = nil); end
273
+ def inspect; end
274
+ def inspection_data; end
275
+ end
276
+ class Concurrent::RejectedExecutionError < Concurrent::Error
277
+ end
278
+ class Concurrent::ResourceLimitError < Concurrent::Error
279
+ end
280
+ class Concurrent::TimeoutError < Concurrent::Error
281
+ end
282
+ class Concurrent::MultipleErrors < Concurrent::Error
283
+ def errors; end
284
+ def initialize(errors, message = nil); end
285
+ end
286
+ class Concurrent::Collection::CopyOnWriteObserverSet < Concurrent::Synchronization::LockableObject
287
+ def add_observer(observer = nil, func = nil, &block); end
288
+ def clear_observers_and_return_old; end
289
+ def count_observers; end
290
+ def delete_observer(observer); end
291
+ def delete_observers; end
292
+ def initialize; end
293
+ def notify_and_delete_observers(*args, &block); end
294
+ def notify_observers(*args, &block); end
295
+ def notify_to(observers, *args); end
296
+ def ns_initialize; end
297
+ def observers; end
298
+ def observers=(new_set); end
299
+ end
300
+ class Concurrent::Event < Concurrent::Synchronization::LockableObject
301
+ def initialize; end
302
+ def ns_initialize; end
303
+ def ns_set; end
304
+ def reset; end
305
+ def set; end
306
+ def set?; end
307
+ def try?; end
308
+ def wait(timeout = nil); end
309
+ end
310
+ module Concurrent::Concern
311
+ end
312
+ module Concurrent::Concern::Dereferenceable
313
+ def apply_deref_options(value); end
314
+ def deref; end
315
+ def ns_set_deref_options(opts); end
316
+ def set_deref_options(opts = nil); end
317
+ def value; end
318
+ def value=(value); end
319
+ end
320
+ module Concurrent::Concern::Obligation
321
+ def compare_and_set_state(next_state, *expected_current); end
322
+ def complete?; end
323
+ def event; end
324
+ def exception(*args); end
325
+ def fulfilled?; end
326
+ def get_arguments_from(opts = nil); end
327
+ def if_state(*expected_states); end
328
+ def incomplete?; end
329
+ def init_obligation; end
330
+ def no_error!(timeout = nil); end
331
+ def ns_check_state?(expected); end
332
+ def ns_set_state(value); end
333
+ def pending?; end
334
+ def realized?; end
335
+ def reason; end
336
+ def rejected?; end
337
+ def set_state(success, value, reason); end
338
+ def state; end
339
+ def state=(value); end
340
+ def unscheduled?; end
341
+ def value!(timeout = nil); end
342
+ def value(timeout = nil); end
343
+ def wait!(timeout = nil); end
344
+ def wait(timeout = nil); end
345
+ include Concurrent::Concern::Dereferenceable
346
+ end
347
+ class Concurrent::Collection::CopyOnNotifyObserverSet < Concurrent::Synchronization::LockableObject
348
+ def add_observer(observer = nil, func = nil, &block); end
349
+ def count_observers; end
350
+ def delete_observer(observer); end
351
+ def delete_observers; end
352
+ def duplicate_and_clear_observers; end
353
+ def duplicate_observers; end
354
+ def initialize; end
355
+ def notify_and_delete_observers(*args, &block); end
356
+ def notify_observers(*args, &block); end
357
+ def notify_to(observers, *args); end
358
+ def ns_initialize; end
359
+ end
360
+ module Concurrent::Concern::Observable
361
+ def add_observer(observer = nil, func = nil, &block); end
362
+ def count_observers; end
363
+ def delete_observer(observer); end
364
+ def delete_observers; end
365
+ def observers; end
366
+ def observers=(arg0); end
367
+ def with_observer(observer = nil, func = nil, &block); end
368
+ end
369
+ class Concurrent::IVar < Concurrent::Synchronization::LockableObject
370
+ def add_observer(observer = nil, func = nil, &block); end
371
+ def check_for_block_or_value!(block_given, value); end
372
+ def complete(success, value, reason); end
373
+ def complete_without_notification(success, value, reason); end
374
+ def fail(reason = nil); end
375
+ def initialize(value = nil, opts = nil, &block); end
376
+ def notify_observers(value, reason); end
377
+ def ns_complete_without_notification(success, value, reason); end
378
+ def ns_initialize(value, opts); end
379
+ def safe_execute(task, args = nil); end
380
+ def set(value = nil); end
381
+ def try_set(value = nil, &block); end
382
+ include Concurrent::Concern::Obligation
383
+ include Concurrent::Concern::Observable
384
+ end
385
+ class Concurrent::SafeTaskExecutor < Concurrent::Synchronization::LockableObject
386
+ def execute(*args); end
387
+ def initialize(task, opts = nil); end
388
+ end
389
+ module Concurrent::Concern::Logging
390
+ def log(level, progname, message = nil, &block); end
391
+ include Logger::Severity
392
+ end
393
+ module Concurrent::ExecutorService
394
+ def <<(task); end
395
+ def can_overflow?; end
396
+ def post(*args, &task); end
397
+ def serialized?; end
398
+ include Concurrent::Concern::Logging
399
+ end
400
+ class Concurrent::AtExitImplementation < Concurrent::Synchronization::LockableObject
401
+ def add(handler_id = nil, &handler); end
402
+ def delete(handler_id); end
403
+ def enabled=(value); end
404
+ def enabled?; end
405
+ def handler?(handler_id); end
406
+ def handlers; end
407
+ def initialize(*args); end
408
+ def install; end
409
+ def ns_initialize(enabled = nil); end
410
+ def run; end
411
+ def runner; end
412
+ include Logger::Severity
413
+ end
414
+ class Concurrent::AbstractExecutorService < Concurrent::Synchronization::LockableObject
415
+ def auto_terminate=(value); end
416
+ def auto_terminate?; end
417
+ def fallback_policy; end
418
+ def handle_fallback(*args); end
419
+ def initialize(*args, &block); end
420
+ def kill; end
421
+ def ns_auto_terminate=(value); end
422
+ def ns_auto_terminate?; end
423
+ def ns_execute(*args, &task); end
424
+ def ns_kill_execution; end
425
+ def ns_shutdown_execution; end
426
+ def running?; end
427
+ def shutdown; end
428
+ def shutdown?; end
429
+ def shuttingdown?; end
430
+ def terminate_at_exit; end
431
+ def wait_for_termination(timeout = nil); end
432
+ include Concurrent::ExecutorService
433
+ end
434
+ module Concurrent::SerialExecutorService
435
+ def serialized?; end
436
+ include Concurrent::ExecutorService
437
+ end
438
+ class Concurrent::ImmediateExecutor < Concurrent::AbstractExecutorService
439
+ def <<(task); end
440
+ def initialize; end
441
+ def kill; end
442
+ def post(*args, &task); end
443
+ def running?; end
444
+ def shutdown; end
445
+ def shutdown?; end
446
+ def shuttingdown?; end
447
+ def wait_for_termination(timeout = nil); end
448
+ include Concurrent::SerialExecutorService
449
+ end
450
+ class Concurrent::Delay < Concurrent::Synchronization::LockableObject
451
+ def execute_task_once; end
452
+ def initialize(opts = nil, &block); end
453
+ def ns_initialize(opts, &block); end
454
+ def reconfigure(&block); end
455
+ def value!(timeout = nil); end
456
+ def value(timeout = nil); end
457
+ def wait(timeout = nil); end
458
+ include Concurrent::Concern::Obligation
459
+ end
460
+ module Concurrent::AtomicNumericCompareAndSetWrapper
461
+ def compare_and_set(old_value, new_value); end
462
+ end
463
+ class Concurrent::MutexAtomicReference < Concurrent::Synchronization::LockableObject
464
+ def _compare_and_set(old_value, new_value); end
465
+ def compare_and_swap(old_value, new_value); end
466
+ def get; end
467
+ def get_and_set(new_value); end
468
+ def initialize(value = nil); end
469
+ def ns_initialize(value); end
470
+ def set(new_value); end
471
+ def swap(new_value); end
472
+ def value; end
473
+ def value=(new_value); end
474
+ include Concurrent::AtomicDirectUpdate
475
+ include Concurrent::AtomicNumericCompareAndSetWrapper
476
+ end
477
+ module Concurrent::AtomicDirectUpdate
478
+ def try_update!; end
479
+ def try_update; end
480
+ def update; end
481
+ end
482
+ class Concurrent::ConcurrentUpdateError < ThreadError
483
+ end
484
+ class Concurrent::AtomicReference < Concurrent::MutexAtomicReference
485
+ def inspect; end
486
+ def to_s; end
487
+ end
488
+ class Concurrent::RubyExecutorService < Concurrent::AbstractExecutorService
489
+ def initialize(*args, &block); end
490
+ def kill; end
491
+ def ns_running?; end
492
+ def ns_shutdown?; end
493
+ def ns_shutdown_execution; end
494
+ def ns_shuttingdown?; end
495
+ def post(*args, &task); end
496
+ def shutdown; end
497
+ def stop_event; end
498
+ def stopped_event; end
499
+ def wait_for_termination(timeout = nil); end
500
+ end
501
+ class Concurrent::RubyThreadPoolExecutor < Concurrent::RubyExecutorService
502
+ def can_overflow?; end
503
+ def completed_task_count; end
504
+ def idletime; end
505
+ def initialize(opts = nil); end
506
+ def largest_length; end
507
+ def length; end
508
+ def max_length; end
509
+ def max_queue; end
510
+ def min_length; end
511
+ def ns_add_busy_worker; end
512
+ def ns_assign_worker(*args, &task); end
513
+ def ns_enqueue(*args, &task); end
514
+ def ns_execute(*args, &task); end
515
+ def ns_initialize(opts); end
516
+ def ns_kill_execution; end
517
+ def ns_limited_queue?; end
518
+ def ns_prune_pool; end
519
+ def ns_ready_worker(worker, success = nil); end
520
+ def ns_remove_busy_worker(worker); end
521
+ def ns_reset_if_forked; end
522
+ def ns_shutdown_execution; end
523
+ def ns_worker_died(worker); end
524
+ def ns_worker_not_old_enough(worker); end
525
+ def queue_length; end
526
+ def ready_worker(worker); end
527
+ def remaining_capacity; end
528
+ def remove_busy_worker(worker); end
529
+ def scheduled_task_count; end
530
+ def worker_died(worker); end
531
+ def worker_not_old_enough(worker); end
532
+ def worker_task_completed; end
533
+ end
534
+ class Concurrent::RubyThreadPoolExecutor::Worker
535
+ def <<(message); end
536
+ def create_worker(queue, pool, idletime); end
537
+ def initialize(pool); end
538
+ def kill; end
539
+ def run_task(pool, task, args); end
540
+ def stop; end
541
+ include Concurrent::Concern::Logging
542
+ end
543
+ class Concurrent::ThreadPoolExecutor < Concurrent::RubyThreadPoolExecutor
544
+ end
545
+ class Concurrent::CachedThreadPool < Concurrent::ThreadPoolExecutor
546
+ def initialize(opts = nil); end
547
+ def ns_initialize(opts); end
548
+ end
549
+ class Concurrent::Utility::ProcessorCounter
550
+ def compute_physical_processor_count; end
551
+ def compute_processor_count; end
552
+ def initialize; end
553
+ def physical_processor_count; end
554
+ def processor_count; end
555
+ end
556
+ module Concurrent::Options
557
+ def self.executor(executor_identifier); end
558
+ def self.executor_from_options(opts = nil); end
559
+ end
560
+ class Concurrent::PromiseExecutionError < StandardError
561
+ end
562
+ class Concurrent::Promise < Concurrent::IVar
563
+ def catch(&block); end
564
+ def complete(success, value, reason); end
565
+ def execute; end
566
+ def fail(reason = nil); end
567
+ def flat_map(&block); end
568
+ def initialize(opts = nil, &block); end
569
+ def notify_child(child); end
570
+ def ns_initialize(value, opts); end
571
+ def on_error(&block); end
572
+ def on_fulfill(result); end
573
+ def on_reject(reason); end
574
+ def on_success(&block); end
575
+ def realize(task); end
576
+ def rescue(&block); end
577
+ def root?; end
578
+ def self.aggregate(method, *promises); end
579
+ def self.all?(*promises); end
580
+ def self.any?(*promises); end
581
+ def self.execute(opts = nil, &block); end
582
+ def self.fulfill(value, opts = nil); end
583
+ def self.reject(reason, opts = nil); end
584
+ def self.zip(*promises); end
585
+ def set(value = nil, &block); end
586
+ def set_pending; end
587
+ def set_state!(success, value, reason); end
588
+ def synchronized_set_state!(success, value, reason); end
589
+ def then(*args, &block); end
590
+ def zip(*others); end
591
+ end
592
+ class Concurrent::MutexAtomicBoolean < Concurrent::Synchronization::LockableObject
593
+ def false?; end
594
+ def initialize(initial = nil); end
595
+ def make_false; end
596
+ def make_true; end
597
+ def ns_initialize(initial); end
598
+ def ns_make_value(value); end
599
+ def true?; end
600
+ def value; end
601
+ def value=(value); end
602
+ end
603
+ class Concurrent::AtomicBoolean < Concurrent::MutexAtomicBoolean
604
+ def inspect; end
605
+ def to_s; end
606
+ end
607
+ module Concurrent::Utility::NativeInteger
608
+ def ensure_integer(value); end
609
+ def ensure_integer_and_bounds(value); end
610
+ def ensure_lower_bound(value); end
611
+ def ensure_positive(value); end
612
+ def ensure_positive_and_no_zero(value); end
613
+ def ensure_upper_bound(value); end
614
+ extend Concurrent::Utility::NativeInteger
615
+ end
616
+ class Concurrent::MutexAtomicFixnum < Concurrent::Synchronization::LockableObject
617
+ def compare_and_set(expect, update); end
618
+ def decrement(delta = nil); end
619
+ def down(delta = nil); end
620
+ def increment(delta = nil); end
621
+ def initialize(initial = nil); end
622
+ def ns_initialize(initial); end
623
+ def ns_set(value); end
624
+ def up(delta = nil); end
625
+ def update; end
626
+ def value; end
627
+ def value=(value); end
628
+ end
629
+ class Concurrent::AtomicFixnum < Concurrent::MutexAtomicFixnum
630
+ def inspect; end
631
+ def to_s; end
632
+ end
633
+ class Concurrent::CyclicBarrier < Concurrent::Synchronization::LockableObject
634
+ def broken?; end
635
+ def initialize(parties, &block); end
636
+ def ns_generation_done(generation, status, continue = nil); end
637
+ def ns_initialize(parties, &block); end
638
+ def ns_next_generation; end
639
+ def number_waiting; end
640
+ def parties; end
641
+ def reset; end
642
+ def wait(timeout = nil); end
643
+ end
644
+ class Concurrent::CyclicBarrier::Generation < Struct
645
+ def self.[](*arg0); end
646
+ def self.inspect; end
647
+ def self.members; end
648
+ def self.new(*arg0); end
649
+ def status; end
650
+ def status=(_); end
651
+ end
652
+ class Concurrent::MutexCountDownLatch < Concurrent::Synchronization::LockableObject
653
+ def count; end
654
+ def count_down; end
655
+ def initialize(count = nil); end
656
+ def ns_initialize(count); end
657
+ def wait(timeout = nil); end
658
+ end
659
+ class Concurrent::CountDownLatch < Concurrent::MutexCountDownLatch
660
+ end
661
+ class Concurrent::ReadWriteLock < Concurrent::Synchronization::Object
662
+ def acquire_read_lock; end
663
+ def acquire_write_lock; end
664
+ def has_waiters?; end
665
+ def initialize; end
666
+ def max_readers?(c = nil); end
667
+ def max_writers?(c = nil); end
668
+ def release_read_lock; end
669
+ def release_write_lock; end
670
+ def running_readers(c = nil); end
671
+ def running_readers?(c = nil); end
672
+ def running_writer?(c = nil); end
673
+ def self.new(*args, &block); end
674
+ def waiting_writer?(c = nil); end
675
+ def waiting_writers(c = nil); end
676
+ def with_read_lock; end
677
+ def with_write_lock; end
678
+ def write_locked?; end
679
+ end
680
+ class Concurrent::AbstractThreadLocalVar
681
+ def allocate_storage; end
682
+ def bind(value, &block); end
683
+ def default; end
684
+ def initialize(default = nil, &default_block); end
685
+ def value; end
686
+ def value=(value); end
687
+ end
688
+ class Concurrent::RubyThreadLocalVar < Concurrent::AbstractThreadLocalVar
689
+ def allocate_storage; end
690
+ def default_for(thread); end
691
+ def get_threadlocal_array(thread = nil); end
692
+ def self.thread_finalizer(array); end
693
+ def self.threadlocal_finalizer(index); end
694
+ def set_threadlocal_array(array, thread = nil); end
695
+ def value; end
696
+ def value=(value); end
697
+ def value_for(thread); end
698
+ end
699
+ class Concurrent::ThreadLocalVar < Concurrent::RubyThreadLocalVar
700
+ end
701
+ class Concurrent::ReentrantReadWriteLock < Concurrent::Synchronization::Object
702
+ def acquire_read_lock; end
703
+ def acquire_write_lock; end
704
+ def initialize; end
705
+ def max_readers?(c = nil); end
706
+ def max_writers?(c = nil); end
707
+ def release_read_lock; end
708
+ def release_write_lock; end
709
+ def running_readers(c = nil); end
710
+ def running_readers?(c = nil); end
711
+ def running_writer?(c = nil); end
712
+ def self.new(*args, &block); end
713
+ def try_read_lock; end
714
+ def try_write_lock; end
715
+ def waiting_or_running_writer?(c = nil); end
716
+ def waiting_writers(c = nil); end
717
+ def with_read_lock; end
718
+ def with_write_lock; end
719
+ end
720
+ class Concurrent::MutexSemaphore < Concurrent::Synchronization::LockableObject
721
+ def acquire(permits = nil); end
722
+ def available_permits; end
723
+ def drain_permits; end
724
+ def initialize(count); end
725
+ def ns_initialize(count); end
726
+ def reduce_permits(reduction); end
727
+ def release(permits = nil); end
728
+ def try_acquire(permits = nil, timeout = nil); end
729
+ def try_acquire_now(permits); end
730
+ def try_acquire_timed(permits, timeout); end
731
+ end
732
+ class Concurrent::Semaphore < Concurrent::MutexSemaphore
733
+ end
734
+ class Concurrent::FixedThreadPool < Concurrent::ThreadPoolExecutor
735
+ def initialize(num_threads, opts = nil); end
736
+ end
737
+ class Concurrent::SimpleExecutorService < Concurrent::RubyExecutorService
738
+ def <<(task); end
739
+ def kill; end
740
+ def ns_initialize; end
741
+ def post(*args, &task); end
742
+ def running?; end
743
+ def self.<<(task); end
744
+ def self.post(*args); end
745
+ def shutdown; end
746
+ def shutdown?; end
747
+ def shuttingdown?; end
748
+ def wait_for_termination(timeout = nil); end
749
+ end
750
+ class Concurrent::IndirectImmediateExecutor < Concurrent::ImmediateExecutor
751
+ def initialize; end
752
+ def post(*args, &task); end
753
+ end
754
+ class Concurrent::RubySingleThreadExecutor < Concurrent::RubyThreadPoolExecutor
755
+ def initialize(opts = nil); end
756
+ end
757
+ class Concurrent::SerializedExecution < Concurrent::Synchronization::LockableObject
758
+ def call_job(job); end
759
+ def initialize; end
760
+ def ns_initialize; end
761
+ def post(executor, *args, &task); end
762
+ def posts(posts); end
763
+ def work(job); end
764
+ include Concurrent::Concern::Logging
765
+ end
766
+ class Concurrent::SerializedExecution::Job < Struct
767
+ def args; end
768
+ def args=(_); end
769
+ def block; end
770
+ def block=(_); end
771
+ def call; end
772
+ def executor; end
773
+ def executor=(_); end
774
+ def self.[](*arg0); end
775
+ def self.inspect; end
776
+ def self.members; end
777
+ def self.new(*arg0); end
778
+ end
779
+ class Concurrent::SerializedExecutionDelegator < SimpleDelegator
780
+ def initialize(executor); end
781
+ def post(*args, &task); end
782
+ include Concurrent::SerialExecutorService
783
+ end
784
+ class Concurrent::SingleThreadExecutor < Concurrent::RubySingleThreadExecutor
785
+ end
786
+ class Concurrent::ScheduledTask < Concurrent::IVar
787
+ def <=>(other); end
788
+ def cancel; end
789
+ def cancelled?; end
790
+ def execute; end
791
+ def executor; end
792
+ def fail(reason = nil); end
793
+ def initial_delay; end
794
+ def initialize(delay, opts = nil, &task); end
795
+ def ns_reschedule(delay); end
796
+ def ns_schedule(delay); end
797
+ def process_task; end
798
+ def processing?; end
799
+ def reschedule(delay); end
800
+ def reset; end
801
+ def schedule_time; end
802
+ def self.execute(delay, opts = nil, &task); end
803
+ def set(value = nil); end
804
+ def try_set(value = nil, &block); end
805
+ include Comparable
806
+ end
807
+ class Concurrent::Collection::RubyNonConcurrentPriorityQueue
808
+ def <<(item); end
809
+ def clear; end
810
+ def delete(item); end
811
+ def deq; end
812
+ def empty?; end
813
+ def enq(item); end
814
+ def has_priority?(item); end
815
+ def include?(item); end
816
+ def initialize(opts = nil); end
817
+ def length; end
818
+ def ordered?(x, y); end
819
+ def peek; end
820
+ def pop; end
821
+ def push(item); end
822
+ def self.from_list(list, opts = nil); end
823
+ def shift; end
824
+ def sink(k); end
825
+ def size; end
826
+ def swap(x, y); end
827
+ def swim(k); end
828
+ end
829
+ class Concurrent::Collection::NonConcurrentPriorityQueue < Concurrent::Collection::RubyNonConcurrentPriorityQueue
830
+ def <<(item); end
831
+ def deq; end
832
+ def enq(item); end
833
+ def has_priority?(item); end
834
+ def shift; end
835
+ def size; end
836
+ end
837
+ class Concurrent::TimerSet < Concurrent::RubyExecutorService
838
+ def <<(task); end
839
+ def initialize(opts = nil); end
840
+ def kill; end
841
+ def ns_initialize(opts); end
842
+ def ns_post_task(task); end
843
+ def ns_reset_if_forked; end
844
+ def ns_shutdown_execution; end
845
+ def post(delay, *args, &task); end
846
+ def post_task(task); end
847
+ def process_tasks; end
848
+ def remove_task(task); end
849
+ end
850
+ class Concurrent::AtomicMarkableReference < Concurrent::Synchronization::Object
851
+ def __initialize_atomic_fields__; end
852
+ def compare_and_set(expected_val, new_val, expected_mark, new_mark); end
853
+ def compare_and_set_reference(expected, value); end
854
+ def compare_and_swap(expected_val, new_val, expected_mark, new_mark); end
855
+ def get; end
856
+ def immutable_array(*args); end
857
+ def initialize(value = nil, mark = nil); end
858
+ def mark; end
859
+ def marked?; end
860
+ def reference; end
861
+ def reference=(value); end
862
+ def self.new(*args, &block); end
863
+ def set(new_val, new_mark); end
864
+ def swap_reference(value); end
865
+ def try_update!; end
866
+ def try_update; end
867
+ def update; end
868
+ def update_reference(&block); end
869
+ def value; end
870
+ end
871
+ class Concurrent::Agent < Concurrent::Synchronization::LockableObject
872
+ def <<(action); end
873
+ def await; end
874
+ def await_for!(timeout); end
875
+ def await_for(timeout); end
876
+ def deref; end
877
+ def enqueue_action_job(action, args, executor); end
878
+ def enqueue_await_job(latch); end
879
+ def error; end
880
+ def error_mode; end
881
+ def execute_next_job; end
882
+ def failed?; end
883
+ def handle_error(error); end
884
+ def initialize(initial, opts = nil); end
885
+ def ns_enqueue_job(job, index = nil); end
886
+ def ns_find_last_job_for_thread; end
887
+ def ns_initialize(initial, opts); end
888
+ def ns_post_next_job; end
889
+ def ns_validate(value); end
890
+ def post(*args, &action); end
891
+ def reason; end
892
+ def restart(new_value, opts = nil); end
893
+ def self.await(*agents); end
894
+ def self.await_for!(timeout, *agents); end
895
+ def self.await_for(timeout, *agents); end
896
+ def send!(*args, &action); end
897
+ def send(*args, &action); end
898
+ def send_off!(*args, &action); end
899
+ def send_off(*args, &action); end
900
+ def send_via!(executor, *args, &action); end
901
+ def send_via(executor, *args, &action); end
902
+ def stopped?; end
903
+ def value; end
904
+ def wait(timeout = nil); end
905
+ include Concurrent::Concern::Observable
906
+ end
907
+ class Concurrent::Agent::Job < Struct
908
+ def action; end
909
+ def action=(_); end
910
+ def args; end
911
+ def args=(_); end
912
+ def caller; end
913
+ def caller=(_); end
914
+ def executor; end
915
+ def executor=(_); end
916
+ def self.[](*arg0); end
917
+ def self.inspect; end
918
+ def self.members; end
919
+ def self.new(*arg0); end
920
+ end
921
+ class Concurrent::Agent::Error < StandardError
922
+ def initialize(message = nil); end
923
+ end
924
+ class Concurrent::Agent::ValidationError < Concurrent::Agent::Error
925
+ def initialize(message = nil); end
926
+ end
927
+ class Concurrent::Atom < Concurrent::Synchronization::Object
928
+ def __initialize_atomic_fields__; end
929
+ def compare_and_set(old_value, new_value); end
930
+ def compare_and_set_value(expected, value); end
931
+ def deref; end
932
+ def initialize(value, opts = nil); end
933
+ def reset(new_value); end
934
+ def self.new(*args, &block); end
935
+ def swap(*args); end
936
+ def swap_value(value); end
937
+ def update_value(&block); end
938
+ def valid?(new_value); end
939
+ def value; end
940
+ def value=(value); end
941
+ include Concurrent::Concern::Observable
942
+ end
943
+ module Concurrent::ThreadSafe
944
+ end
945
+ module Concurrent::ThreadSafe::Util
946
+ end
947
+ class Concurrent::Array < Array
948
+ end
949
+ class Concurrent::Hash < Hash
950
+ end
951
+ class Concurrent::Set < Set
952
+ end
953
+ class Concurrent::Tuple
954
+ def cas(i, old_value, new_value); end
955
+ def compare_and_set(i, old_value, new_value); end
956
+ def each; end
957
+ def get(i); end
958
+ def initialize(size); end
959
+ def set(i, value); end
960
+ def size; end
961
+ def volatile_get(i); end
962
+ def volatile_set(i, value); end
963
+ include Enumerable
964
+ end
965
+ module Concurrent::Async
966
+ def async; end
967
+ def await; end
968
+ def call; end
969
+ def cast; end
970
+ def init_synchronization; end
971
+ def self.included(base); end
972
+ def self.validate_argc(obj, method, *args); end
973
+ end
974
+ module Concurrent::Async::ClassMethods
975
+ def new(*args, &block); end
976
+ end
977
+ class Concurrent::Async::AsyncDelegator < Concurrent::Synchronization::LockableObject
978
+ def initialize(delegate); end
979
+ def method_missing(method, *args, &block); end
980
+ def perform; end
981
+ def respond_to_missing?(method, include_private = nil); end
982
+ end
983
+ class Concurrent::Async::AwaitDelegator
984
+ def initialize(delegate); end
985
+ def method_missing(method, *args, &block); end
986
+ def respond_to_missing?(method, include_private = nil); end
987
+ end
988
+ class Concurrent::Future < Concurrent::IVar
989
+ def cancel; end
990
+ def cancelled?; end
991
+ def execute; end
992
+ def initialize(opts = nil, &block); end
993
+ def ns_initialize(value, opts); end
994
+ def self.execute(opts = nil, &block); end
995
+ def set(value = nil, &block); end
996
+ def wait_or_cancel(timeout); end
997
+ end
998
+ class Concurrent::DependencyCounter
999
+ def initialize(count, &block); end
1000
+ def update(time, value, reason); end
1001
+ end
1002
+ class Concurrent::Maybe < Concurrent::Synchronization::Object
1003
+ def <=>(other); end
1004
+ def fulfilled?; end
1005
+ def initialize(just, nothing); end
1006
+ def just; end
1007
+ def just?; end
1008
+ def nothing; end
1009
+ def nothing?; end
1010
+ def or(other); end
1011
+ def reason; end
1012
+ def rejected?; end
1013
+ def self.from(*args); end
1014
+ def self.just(value); end
1015
+ def self.new(*args, &block); end
1016
+ def self.nothing(error = nil); end
1017
+ def value; end
1018
+ include Comparable
1019
+ end
1020
+ class Concurrent::AbstractExchanger < Concurrent::Synchronization::Object
1021
+ def do_exchange(value, timeout); end
1022
+ def exchange!(value, timeout = nil); end
1023
+ def exchange(value, timeout = nil); end
1024
+ def initialize; end
1025
+ def try_exchange(value, timeout = nil); end
1026
+ end
1027
+ class Concurrent::RubyExchanger < Concurrent::AbstractExchanger
1028
+ def __initialize_atomic_fields__; end
1029
+ def compare_and_set_slot(expected, value); end
1030
+ def do_exchange(value, timeout); end
1031
+ def initialize; end
1032
+ def self.new(*args, &block); end
1033
+ def slot; end
1034
+ def slot=(value); end
1035
+ def swap_slot(value); end
1036
+ def update_slot(&block); end
1037
+ end
1038
+ class Concurrent::RubyExchanger::Node < Concurrent::Synchronization::Object
1039
+ def __initialize_atomic_fields__; end
1040
+ def compare_and_set_value(expected, value); end
1041
+ def initialize(item); end
1042
+ def item; end
1043
+ def latch; end
1044
+ def self.new(*args, &block); end
1045
+ def swap_value(value); end
1046
+ def update_value(&block); end
1047
+ def value; end
1048
+ def value=(value); end
1049
+ end
1050
+ class Concurrent::Exchanger < Concurrent::RubyExchanger
1051
+ end
1052
+ module Concurrent::Synchronization::AbstractStruct
1053
+ def initialize(*values); end
1054
+ def length; end
1055
+ def members; end
1056
+ def ns_each; end
1057
+ def ns_each_pair; end
1058
+ def ns_equality(other); end
1059
+ def ns_get(member); end
1060
+ def ns_inspect; end
1061
+ def ns_merge(other, &block); end
1062
+ def ns_select; end
1063
+ def ns_to_h; end
1064
+ def ns_values; end
1065
+ def ns_values_at(indexes); end
1066
+ def pr_underscore(clazz); end
1067
+ def self.define_struct_class(parent, base, name, members, &block); end
1068
+ def size; end
1069
+ end
1070
+ module Concurrent::ImmutableStruct
1071
+ def ==(other); end
1072
+ def [](member); end
1073
+ def each(&block); end
1074
+ def each_pair(&block); end
1075
+ def inspect; end
1076
+ def merge(other, &block); end
1077
+ def select(&block); end
1078
+ def self.included(base); end
1079
+ def self.new(*args, &block); end
1080
+ def to_a; end
1081
+ def to_h; end
1082
+ def to_s; end
1083
+ def values; end
1084
+ def values_at(*indexes); end
1085
+ include Concurrent::Synchronization::AbstractStruct
1086
+ end
1087
+ module Concurrent::MutableStruct
1088
+ def ==(other); end
1089
+ def [](member); end
1090
+ def []=(member, value); end
1091
+ def each(&block); end
1092
+ def each_pair(&block); end
1093
+ def inspect; end
1094
+ def merge(other, &block); end
1095
+ def select(&block); end
1096
+ def self.new(*args, &block); end
1097
+ def to_a; end
1098
+ def to_h; end
1099
+ def to_s; end
1100
+ def values; end
1101
+ def values_at(*indexes); end
1102
+ include Concurrent::Synchronization::AbstractStruct
1103
+ end
1104
+ class Concurrent::MVar < Concurrent::Synchronization::Object
1105
+ def borrow(timeout = nil); end
1106
+ def empty?; end
1107
+ def full?; end
1108
+ def initialize(value = nil, opts = nil); end
1109
+ def modify!; end
1110
+ def modify(timeout = nil); end
1111
+ def put(value, timeout = nil); end
1112
+ def self.new(*args, &block); end
1113
+ def set!(value); end
1114
+ def synchronize(&block); end
1115
+ def take(timeout = nil); end
1116
+ def try_put!(value); end
1117
+ def try_take!; end
1118
+ def unlocked_empty?; end
1119
+ def unlocked_full?; end
1120
+ def wait_for_empty(timeout); end
1121
+ def wait_for_full(timeout); end
1122
+ def wait_while(condition, timeout); end
1123
+ include Concurrent::Concern::Dereferenceable
1124
+ end
1125
+ module Concurrent::SettableStruct
1126
+ def ==(other); end
1127
+ def [](member); end
1128
+ def []=(member, value); end
1129
+ def each(&block); end
1130
+ def each_pair(&block); end
1131
+ def inspect; end
1132
+ def merge(other, &block); end
1133
+ def select(&block); end
1134
+ def self.new(*args, &block); end
1135
+ def to_a; end
1136
+ def to_h; end
1137
+ def to_s; end
1138
+ def values; end
1139
+ def values_at(*indexes); end
1140
+ include Concurrent::Synchronization::AbstractStruct
1141
+ end
1142
+ class Concurrent::TimerTask < Concurrent::RubyExecutorService
1143
+ def <<(task); end
1144
+ def execute; end
1145
+ def execute_task(completion); end
1146
+ def execution_interval; end
1147
+ def execution_interval=(value); end
1148
+ def initialize(opts = nil, &task); end
1149
+ def ns_initialize(opts, &task); end
1150
+ def ns_kill_execution; end
1151
+ def ns_shutdown_execution; end
1152
+ def post(*args, &task); end
1153
+ def running?; end
1154
+ def schedule_next_task(interval = nil); end
1155
+ def self.execute(opts = nil, &task); end
1156
+ def timeout_interval; end
1157
+ def timeout_interval=(value); end
1158
+ def timeout_task(completion); end
1159
+ include Concurrent::Concern::Dereferenceable
1160
+ include Concurrent::Concern::Observable
1161
+ end
1162
+ class Concurrent::TVar < Concurrent::Synchronization::Object
1163
+ def initialize(value); end
1164
+ def self.new(*args, &block); end
1165
+ def unsafe_increment_version; end
1166
+ def unsafe_lock; end
1167
+ def unsafe_value; end
1168
+ def unsafe_value=(value); end
1169
+ def unsafe_version; end
1170
+ def value; end
1171
+ def value=(value); end
1172
+ end
1173
+ class Concurrent::Transaction
1174
+ def abort; end
1175
+ def commit; end
1176
+ def initialize; end
1177
+ def read(tvar); end
1178
+ def self.current; end
1179
+ def self.current=(transaction); end
1180
+ def unlock; end
1181
+ def valid?; end
1182
+ def write(tvar, value); end
1183
+ end
1184
+ class Concurrent::Transaction::ReadLogEntry < Struct
1185
+ def self.[](*arg0); end
1186
+ def self.inspect; end
1187
+ def self.members; end
1188
+ def self.new(*arg0); end
1189
+ def tvar; end
1190
+ def tvar=(_); end
1191
+ def version; end
1192
+ def version=(_); end
1193
+ end
1194
+ class Concurrent::Transaction::AbortError < StandardError
1195
+ end
1196
+ class Concurrent::Transaction::LeaveError < StandardError
1197
+ end
1198
+ class Concurrent::LockFreeStack < Concurrent::Synchronization::Object
1199
+ def __initialize_atomic_fields__; end
1200
+ def clear; end
1201
+ def clear_each(&block); end
1202
+ def clear_if(head); end
1203
+ def compare_and_clear(head); end
1204
+ def compare_and_pop(head); end
1205
+ def compare_and_push(head, value); end
1206
+ def compare_and_set_head(expected, value); end
1207
+ def each(head = nil); end
1208
+ def empty?(head = nil); end
1209
+ def head; end
1210
+ def head=(value); end
1211
+ def initialize(head = nil); end
1212
+ def inspect; end
1213
+ def peek; end
1214
+ def pop; end
1215
+ def push(value); end
1216
+ def replace_if(head, new_head); end
1217
+ def self.new(*args, &block); end
1218
+ def self.of1(value); end
1219
+ def self.of2(value1, value2); end
1220
+ def swap_head(value); end
1221
+ def to_s; end
1222
+ def update_head(&block); end
1223
+ include Enumerable
1224
+ end
1225
+ class Concurrent::LockFreeStack::Node
1226
+ def initialize(value, next_node); end
1227
+ def next_node; end
1228
+ def self.[](*arg0); end
1229
+ def value; end
1230
+ def value=(arg0); end
1231
+ end
1232
+ module Concurrent::ReInclude
1233
+ def extended(base); end
1234
+ def include(*modules); end
1235
+ def included(base); end
1236
+ end
1237
+ module Concurrent::Promises
1238
+ extend Concurrent::Promises::FactoryMethods
1239
+ end
1240
+ module Concurrent::Promises::FactoryMethods
1241
+ def any(*futures_and_or_events); end
1242
+ def any_event(*futures_and_or_events); end
1243
+ def any_event_on(default_executor, *futures_and_or_events); end
1244
+ def any_fulfilled_future(*futures_and_or_events); end
1245
+ def any_fulfilled_future_on(default_executor, *futures_and_or_events); end
1246
+ def any_resolved_future(*futures_and_or_events); end
1247
+ def any_resolved_future_on(default_executor, *futures_and_or_events); end
1248
+ def delay(*args, &task); end
1249
+ def delay_on(default_executor, *args, &task); end
1250
+ def fulfilled_future(value, default_executor = nil); end
1251
+ def future(*args, &task); end
1252
+ def future_on(default_executor, *args, &task); end
1253
+ def make_future(argument = nil, default_executor = nil); end
1254
+ def rejected_future(reason, default_executor = nil); end
1255
+ def resolvable_event; end
1256
+ def resolvable_event_on(default_executor = nil); end
1257
+ def resolvable_future; end
1258
+ def resolvable_future_on(default_executor = nil); end
1259
+ def resolved_event(default_executor = nil); end
1260
+ def resolved_future(fulfilled, value, reason, default_executor = nil); end
1261
+ def schedule(intended_time, *args, &task); end
1262
+ def schedule_on(default_executor, intended_time, *args, &task); end
1263
+ def zip(*futures_and_or_events); end
1264
+ def zip_events(*futures_and_or_events); end
1265
+ def zip_events_on(default_executor, *futures_and_or_events); end
1266
+ def zip_futures(*futures_and_or_events); end
1267
+ def zip_futures_on(default_executor, *futures_and_or_events); end
1268
+ extend Concurrent::Promises::FactoryMethods
1269
+ extend Concurrent::Promises::FactoryMethods::Configuration
1270
+ extend Concurrent::ReInclude
1271
+ include Concurrent::Promises::FactoryMethods::Configuration
1272
+ end
1273
+ module Concurrent::Promises::FactoryMethods::Configuration
1274
+ def default_executor; end
1275
+ end
1276
+ module Concurrent::Promises::InternalStates
1277
+ end
1278
+ class Concurrent::Promises::InternalStates::State
1279
+ def resolved?; end
1280
+ def to_sym; end
1281
+ end
1282
+ class Concurrent::Promises::InternalStates::Pending < Concurrent::Promises::InternalStates::State
1283
+ def resolved?; end
1284
+ def to_sym; end
1285
+ end
1286
+ class Concurrent::Promises::InternalStates::Reserved < Concurrent::Promises::InternalStates::Pending
1287
+ end
1288
+ class Concurrent::Promises::InternalStates::ResolvedWithResult < Concurrent::Promises::InternalStates::State
1289
+ def apply; end
1290
+ def fulfilled?; end
1291
+ def reason; end
1292
+ def resolved?; end
1293
+ def result; end
1294
+ def to_sym; end
1295
+ def value; end
1296
+ end
1297
+ class Concurrent::Promises::InternalStates::Fulfilled < Concurrent::Promises::InternalStates::ResolvedWithResult
1298
+ def apply(args, block); end
1299
+ def fulfilled?; end
1300
+ def initialize(value); end
1301
+ def reason; end
1302
+ def to_sym; end
1303
+ def value; end
1304
+ end
1305
+ class Concurrent::Promises::InternalStates::FulfilledArray < Concurrent::Promises::InternalStates::Fulfilled
1306
+ def apply(args, block); end
1307
+ end
1308
+ class Concurrent::Promises::InternalStates::Rejected < Concurrent::Promises::InternalStates::ResolvedWithResult
1309
+ def apply(args, block); end
1310
+ def fulfilled?; end
1311
+ def initialize(reason); end
1312
+ def reason; end
1313
+ def to_sym; end
1314
+ def value; end
1315
+ end
1316
+ class Concurrent::Promises::InternalStates::PartiallyRejected < Concurrent::Promises::InternalStates::ResolvedWithResult
1317
+ def apply(args, block); end
1318
+ def fulfilled?; end
1319
+ def initialize(value, reason); end
1320
+ def reason; end
1321
+ def to_sym; end
1322
+ def value; end
1323
+ end
1324
+ class Concurrent::Promises::AbstractEventFuture < Concurrent::Synchronization::Object
1325
+ def __initialize_atomic_fields__; end
1326
+ def add_callback(method, *args); end
1327
+ def add_callback_clear_delayed_node(node); end
1328
+ def add_callback_notify_blocked(promise, index); end
1329
+ def async_callback_on_resolution(state, executor, args, callback); end
1330
+ def blocks; end
1331
+ def call_callback(method, state, args); end
1332
+ def call_callbacks(state); end
1333
+ def callback_clear_delayed_node(state, node); end
1334
+ def callback_notify_blocked(state, promise, index); end
1335
+ def callbacks; end
1336
+ def chain(*args, &task); end
1337
+ def chain_on(executor, *args, &task); end
1338
+ def chain_resolvable(resolvable); end
1339
+ def compare_and_set_internal_state(expected, value); end
1340
+ def default_executor; end
1341
+ def initialize(promise, default_executor); end
1342
+ def inspect; end
1343
+ def internal_state; end
1344
+ def internal_state=(value); end
1345
+ def on_resolution!(*args, &callback); end
1346
+ def on_resolution(*args, &callback); end
1347
+ def on_resolution_using(executor, *args, &callback); end
1348
+ def pending?; end
1349
+ def promise; end
1350
+ def resolve_with(state, raise_on_reassign = nil, reserved = nil); end
1351
+ def resolved?; end
1352
+ def self.new(*args, &block); end
1353
+ def state; end
1354
+ def swap_internal_state(value); end
1355
+ def tangle(resolvable); end
1356
+ def to_s; end
1357
+ def touch; end
1358
+ def touched?; end
1359
+ def update_internal_state(&block); end
1360
+ def wait(timeout = nil); end
1361
+ def wait_until_resolved(timeout); end
1362
+ def waiting_threads; end
1363
+ def with_async(executor, *args, &block); end
1364
+ def with_default_executor(executor); end
1365
+ def with_hidden_resolvable; end
1366
+ include Concurrent::Promises::InternalStates
1367
+ end
1368
+ class Concurrent::Promises::Event < Concurrent::Promises::AbstractEventFuture
1369
+ def &(other); end
1370
+ def any(event_or_future); end
1371
+ def callback_on_resolution(state, args, callback); end
1372
+ def delay; end
1373
+ def rejected_resolution(raise_on_reassign, state); end
1374
+ def schedule(intended_time); end
1375
+ def then(*args, &task); end
1376
+ def to_event; end
1377
+ def to_future; end
1378
+ def with_default_executor(executor); end
1379
+ def zip(other); end
1380
+ def |(event_or_future); end
1381
+ end
1382
+ class Concurrent::Promises::Future < Concurrent::Promises::AbstractEventFuture
1383
+ def &(other); end
1384
+ def any(event_or_future); end
1385
+ def apply(args, block); end
1386
+ def async_callback_on_fulfillment(state, executor, args, callback); end
1387
+ def async_callback_on_rejection(state, executor, args, callback); end
1388
+ def callback_on_fulfillment(state, args, callback); end
1389
+ def callback_on_rejection(state, args, callback); end
1390
+ def callback_on_resolution(state, args, callback); end
1391
+ def delay; end
1392
+ def exception(*args); end
1393
+ def flat(level = nil); end
1394
+ def flat_event; end
1395
+ def flat_future(level = nil); end
1396
+ def fulfilled?; end
1397
+ def inspect; end
1398
+ def on_fulfillment!(*args, &callback); end
1399
+ def on_fulfillment(*args, &callback); end
1400
+ def on_fulfillment_using(executor, *args, &callback); end
1401
+ def on_rejection!(*args, &callback); end
1402
+ def on_rejection(*args, &callback); end
1403
+ def on_rejection_using(executor, *args, &callback); end
1404
+ def reason(timeout = nil, timeout_value = nil); end
1405
+ def rejected?; end
1406
+ def rejected_resolution(raise_on_reassign, state); end
1407
+ def rescue(*args, &task); end
1408
+ def rescue_on(executor, *args, &task); end
1409
+ def result(timeout = nil); end
1410
+ def run(run_test = nil); end
1411
+ def run_test(v); end
1412
+ def schedule(intended_time); end
1413
+ def then(*args, &task); end
1414
+ def then_on(executor, *args, &task); end
1415
+ def to_event; end
1416
+ def to_future; end
1417
+ def to_s; end
1418
+ def value!(timeout = nil, timeout_value = nil); end
1419
+ def value(timeout = nil, timeout_value = nil); end
1420
+ def wait!(timeout = nil); end
1421
+ def wait_until_resolved!(timeout = nil); end
1422
+ def with_default_executor(executor); end
1423
+ def zip(other); end
1424
+ def |(event_or_future); end
1425
+ end
1426
+ module Concurrent::Promises::Resolvable
1427
+ include Concurrent::Promises::InternalStates
1428
+ end
1429
+ class Concurrent::Promises::ResolvableEvent < Concurrent::Promises::Event
1430
+ def resolve(raise_on_reassign = nil, reserved = nil); end
1431
+ def wait(timeout = nil, resolve_on_timeout = nil); end
1432
+ def with_hidden_resolvable; end
1433
+ include Concurrent::Promises::Resolvable
1434
+ end
1435
+ class Concurrent::Promises::ResolvableFuture < Concurrent::Promises::Future
1436
+ def evaluate_to!(*args, &block); end
1437
+ def evaluate_to(*args, &block); end
1438
+ def fulfill(value, raise_on_reassign = nil, reserved = nil); end
1439
+ def reason(timeout = nil, timeout_value = nil, resolve_on_timeout = nil); end
1440
+ def reject(reason, raise_on_reassign = nil, reserved = nil); end
1441
+ def resolve(fulfilled = nil, value = nil, reason = nil, raise_on_reassign = nil, reserved = nil); end
1442
+ def result(timeout = nil, resolve_on_timeout = nil); end
1443
+ def value!(timeout = nil, timeout_value = nil, resolve_on_timeout = nil); end
1444
+ def value(timeout = nil, timeout_value = nil, resolve_on_timeout = nil); end
1445
+ def wait!(timeout = nil, resolve_on_timeout = nil); end
1446
+ def wait(timeout = nil, resolve_on_timeout = nil); end
1447
+ def with_hidden_resolvable; end
1448
+ include Concurrent::Promises::Resolvable
1449
+ end
1450
+ class Concurrent::Promises::AbstractPromise < Concurrent::Synchronization::Object
1451
+ def default_executor; end
1452
+ def delayed_because; end
1453
+ def evaluate_to(*args, block); end
1454
+ def event; end
1455
+ def future; end
1456
+ def initialize(future); end
1457
+ def inspect; end
1458
+ def resolve_with(new_state, raise_on_reassign = nil); end
1459
+ def self.new(*args, &block); end
1460
+ def state; end
1461
+ def to_s; end
1462
+ def touch; end
1463
+ include Concurrent::Promises::InternalStates
1464
+ end
1465
+ class Concurrent::Promises::ResolvableEventPromise < Concurrent::Promises::AbstractPromise
1466
+ def initialize(default_executor); end
1467
+ end
1468
+ class Concurrent::Promises::ResolvableFuturePromise < Concurrent::Promises::AbstractPromise
1469
+ def evaluate_to(*args, block); end
1470
+ def initialize(default_executor); end
1471
+ end
1472
+ class Concurrent::Promises::InnerPromise < Concurrent::Promises::AbstractPromise
1473
+ end
1474
+ class Concurrent::Promises::BlockedPromise < Concurrent::Promises::InnerPromise
1475
+ def blocked_by; end
1476
+ def clear_and_propagate_touch(stack_or_element = nil); end
1477
+ def delayed_because; end
1478
+ def initialize(delayed, blockers_count, future); end
1479
+ def on_blocker_resolution(future, index); end
1480
+ def on_resolvable(resolved_future, index); end
1481
+ def process_on_blocker_resolution(future, index); end
1482
+ def resolvable?(countdown, future, index); end
1483
+ def self.add_delayed(delayed1, delayed2); end
1484
+ def self.new(*args, &block); end
1485
+ def self.new_blocked_by(blockers, *args, &block); end
1486
+ def self.new_blocked_by1(blocker, *args, &block); end
1487
+ def self.new_blocked_by2(blocker1, blocker2, *args, &block); end
1488
+ def touch; end
1489
+ end
1490
+ class Concurrent::Promises::BlockedTaskPromise < Concurrent::Promises::BlockedPromise
1491
+ def executor; end
1492
+ def initialize(delayed, blockers_count, default_executor, executor, args, &task); end
1493
+ end
1494
+ class Concurrent::Promises::ThenPromise < Concurrent::Promises::BlockedTaskPromise
1495
+ def initialize(delayed, blockers_count, default_executor, executor, args, &task); end
1496
+ def on_resolvable(resolved_future, index); end
1497
+ end
1498
+ class Concurrent::Promises::RescuePromise < Concurrent::Promises::BlockedTaskPromise
1499
+ def initialize(delayed, blockers_count, default_executor, executor, args, &task); end
1500
+ def on_resolvable(resolved_future, index); end
1501
+ end
1502
+ class Concurrent::Promises::ChainPromise < Concurrent::Promises::BlockedTaskPromise
1503
+ def on_resolvable(resolved_future, index); end
1504
+ end
1505
+ class Concurrent::Promises::ImmediateEventPromise < Concurrent::Promises::InnerPromise
1506
+ def initialize(default_executor); end
1507
+ end
1508
+ class Concurrent::Promises::ImmediateFuturePromise < Concurrent::Promises::InnerPromise
1509
+ def initialize(default_executor, fulfilled, value, reason); end
1510
+ end
1511
+ class Concurrent::Promises::AbstractFlatPromise < Concurrent::Promises::BlockedPromise
1512
+ def add_delayed_of(future); end
1513
+ def initialize(delayed_because, blockers_count, event_or_future); end
1514
+ def on_resolvable(resolved_future, index); end
1515
+ def resolvable?(countdown, future, index); end
1516
+ def touch; end
1517
+ def touched?; end
1518
+ end
1519
+ class Concurrent::Promises::FlatEventPromise < Concurrent::Promises::AbstractFlatPromise
1520
+ def initialize(delayed, blockers_count, default_executor); end
1521
+ def process_on_blocker_resolution(future, index); end
1522
+ end
1523
+ class Concurrent::Promises::FlatFuturePromise < Concurrent::Promises::AbstractFlatPromise
1524
+ def initialize(delayed, blockers_count, levels, default_executor); end
1525
+ def process_on_blocker_resolution(future, index); end
1526
+ end
1527
+ class Concurrent::Promises::RunFuturePromise < Concurrent::Promises::AbstractFlatPromise
1528
+ def initialize(delayed, blockers_count, default_executor, run_test); end
1529
+ def process_on_blocker_resolution(future, index); end
1530
+ end
1531
+ class Concurrent::Promises::ZipEventEventPromise < Concurrent::Promises::BlockedPromise
1532
+ def initialize(delayed, blockers_count, default_executor); end
1533
+ def on_resolvable(resolved_future, index); end
1534
+ end
1535
+ class Concurrent::Promises::ZipFutureEventPromise < Concurrent::Promises::BlockedPromise
1536
+ def initialize(delayed, blockers_count, default_executor); end
1537
+ def on_resolvable(resolved_future, index); end
1538
+ def process_on_blocker_resolution(future, index); end
1539
+ end
1540
+ class Concurrent::Promises::EventWrapperPromise < Concurrent::Promises::BlockedPromise
1541
+ def initialize(delayed, blockers_count, default_executor); end
1542
+ def on_resolvable(resolved_future, index); end
1543
+ end
1544
+ class Concurrent::Promises::FutureWrapperPromise < Concurrent::Promises::BlockedPromise
1545
+ def initialize(delayed, blockers_count, default_executor); end
1546
+ def on_resolvable(resolved_future, index); end
1547
+ end
1548
+ class Concurrent::Promises::ZipFuturesPromise < Concurrent::Promises::BlockedPromise
1549
+ def initialize(delayed, blockers_count, default_executor); end
1550
+ def on_resolvable(resolved_future, index); end
1551
+ def process_on_blocker_resolution(future, index); end
1552
+ end
1553
+ class Concurrent::Promises::ZipEventsPromise < Concurrent::Promises::BlockedPromise
1554
+ def initialize(delayed, blockers_count, default_executor); end
1555
+ def on_resolvable(resolved_future, index); end
1556
+ end
1557
+ class Concurrent::Promises::AbstractAnyPromise < Concurrent::Promises::BlockedPromise
1558
+ end
1559
+ class Concurrent::Promises::AnyResolvedEventPromise < Concurrent::Promises::AbstractAnyPromise
1560
+ def initialize(delayed, blockers_count, default_executor); end
1561
+ def on_resolvable(resolved_future, index); end
1562
+ def resolvable?(countdown, future, index); end
1563
+ end
1564
+ class Concurrent::Promises::AnyResolvedFuturePromise < Concurrent::Promises::AbstractAnyPromise
1565
+ def initialize(delayed, blockers_count, default_executor); end
1566
+ def on_resolvable(resolved_future, index); end
1567
+ def resolvable?(countdown, future, index); end
1568
+ end
1569
+ class Concurrent::Promises::AnyFulfilledFuturePromise < Concurrent::Promises::AnyResolvedFuturePromise
1570
+ def resolvable?(countdown, future, index); end
1571
+ end
1572
+ class Concurrent::Promises::DelayPromise < Concurrent::Promises::InnerPromise
1573
+ def delayed_because; end
1574
+ def initialize(default_executor); end
1575
+ def touch; end
1576
+ end
1577
+ class Concurrent::Promises::ScheduledPromise < Concurrent::Promises::InnerPromise
1578
+ def initialize(default_executor, intended_time); end
1579
+ def inspect; end
1580
+ def intended_time; end
1581
+ end
1582
+ class Concurrent::SynchronizedDelegator < SimpleDelegator
1583
+ def initialize(obj); end
1584
+ def method_missing(method, *args, &block); end
1585
+ def setup; end
1586
+ def teardown; end
1587
+ end