packwerk 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +29 -20
  3. data/.github/workflows/cla.yml +22 -0
  4. data/.rubocop.yml +48 -19
  5. data/Gemfile +7 -2
  6. data/Gemfile.lock +201 -175
  7. data/README.md +1 -1
  8. data/RESOLVING_VIOLATIONS.md +81 -0
  9. data/Rakefile +1 -1
  10. data/USAGE.md +14 -5
  11. data/bin/m +1 -1
  12. data/bin/rake +1 -1
  13. data/bin/rubocop +1 -1
  14. data/bin/srb +1 -1
  15. data/bin/tapioca +1 -1
  16. data/gemfiles/Gemfile-rails-6-0 +1 -1
  17. data/gemfiles/Gemfile-rails-6-1 +22 -0
  18. data/lib/packwerk/application_validator.rb +7 -6
  19. data/lib/packwerk/association_inspector.rb +17 -15
  20. data/lib/packwerk/cache.rb +36 -29
  21. data/lib/packwerk/cli.rb +5 -6
  22. data/lib/packwerk/const_node_inspector.rb +8 -7
  23. data/lib/packwerk/constant_name_inspector.rb +2 -2
  24. data/lib/packwerk/deprecated_references.rb +34 -19
  25. data/lib/packwerk/file_processor.rb +14 -14
  26. data/lib/packwerk/files_for_processing.rb +27 -31
  27. data/lib/packwerk/formatters/offenses_formatter.rb +3 -3
  28. data/lib/packwerk/formatters/progress_formatter.rb +2 -2
  29. data/lib/packwerk/node.rb +1 -294
  30. data/lib/packwerk/node_helpers.rb +335 -0
  31. data/lib/packwerk/node_processor.rb +6 -5
  32. data/lib/packwerk/node_processor_factory.rb +3 -3
  33. data/lib/packwerk/node_visitor.rb +1 -1
  34. data/lib/packwerk/offense_collection.rb +6 -3
  35. data/lib/packwerk/offenses_formatter.rb +2 -2
  36. data/lib/packwerk/package.rb +3 -0
  37. data/lib/packwerk/package_set.rb +2 -0
  38. data/lib/packwerk/parse_run.rb +15 -13
  39. data/lib/packwerk/parsed_constant_definitions.rb +23 -20
  40. data/lib/packwerk/parsers/erb.rb +3 -3
  41. data/lib/packwerk/reference_checking/checkers/checker.rb +16 -3
  42. data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +16 -0
  43. data/lib/packwerk/reference_checking/checkers/privacy_checker.rb +18 -0
  44. data/lib/packwerk/reference_checking/reference_checker.rb +3 -1
  45. data/lib/packwerk/reference_extractor.rb +51 -48
  46. data/lib/packwerk/reference_offense.rb +3 -27
  47. data/lib/packwerk/run_context.rb +3 -3
  48. data/lib/packwerk/spring_command.rb +1 -1
  49. data/lib/packwerk/version.rb +1 -1
  50. data/lib/packwerk.rb +1 -0
  51. data/packwerk.gemspec +4 -12
  52. data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +2754 -0
  53. data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +1496 -0
  54. data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +2362 -0
  55. data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +19397 -0
  56. data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +1569 -0
  57. data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +14907 -0
  58. data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +2553 -0
  59. data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +5999 -0
  60. data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +37832 -0
  61. data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +2321 -0
  62. data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +18818 -0
  63. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11722 -0
  64. data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +90 -0
  65. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  66. data/sorbet/rbi/gems/digest@3.1.0.rbi +189 -0
  67. data/sorbet/rbi/gems/erubi@1.11.0.rbi +140 -0
  68. data/sorbet/rbi/gems/globalid@1.0.0.rbi +572 -0
  69. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  70. data/sorbet/rbi/gems/json@2.6.2.rbi +1548 -0
  71. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +8 -0
  72. data/sorbet/rbi/gems/loofah@2.18.0.rbi +877 -0
  73. data/sorbet/rbi/gems/m@1.6.0.rbi +257 -0
  74. data/sorbet/rbi/gems/marcel@1.0.2.rbi +220 -0
  75. data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +170 -0
  76. data/sorbet/rbi/gems/mini_portile2@2.8.0.rbi +8 -0
  77. data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +104 -0
  78. data/sorbet/rbi/gems/minitest@5.16.2.rbi +2136 -0
  79. data/sorbet/rbi/gems/mocha@1.14.0.rbi +4177 -0
  80. data/sorbet/rbi/gems/net-imap@0.2.3.rbi +2147 -0
  81. data/sorbet/rbi/gems/net-pop@0.1.1.rbi +926 -0
  82. data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +11 -0
  83. data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +1108 -0
  84. data/sorbet/rbi/gems/netrc@0.11.0.rbi +153 -0
  85. data/sorbet/rbi/gems/nio4r@2.5.8.rbi +292 -0
  86. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +6478 -0
  87. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  88. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +9029 -0
  89. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +8 -0
  90. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  91. data/sorbet/rbi/gems/racc@1.6.0.rbi +152 -0
  92. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +953 -0
  93. data/sorbet/rbi/gems/rack@2.2.4.rbi +5636 -0
  94. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +688 -0
  95. data/sorbet/rbi/gems/rails@7.0.3.1.rbi +8 -0
  96. data/sorbet/rbi/gems/railties@7.0.3.1.rbi +3507 -0
  97. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +392 -0
  98. data/sorbet/rbi/gems/rake@13.0.6.rbi +2924 -0
  99. data/sorbet/rbi/gems/rbi@0.0.15.rbi +3007 -0
  100. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3383 -0
  101. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4714 -0
  102. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +6961 -0
  103. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +2986 -0
  104. data/sorbet/rbi/gems/{rubocop-shopify@2.0.1.rbi → rubocop-shopify@2.9.0.rbi} +4 -4
  105. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +992 -0
  106. data/sorbet/rbi/gems/rubocop@1.34.1.rbi +51820 -0
  107. data/sorbet/rbi/gems/ruby-lsp@0.2.1.rbi +11 -0
  108. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +474 -0
  109. data/sorbet/rbi/gems/spoom@1.1.11.rbi +2181 -0
  110. data/sorbet/rbi/gems/spring@4.0.0.rbi +411 -0
  111. data/sorbet/rbi/gems/strscan@3.0.4.rbi +8 -0
  112. data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +8 -0
  113. data/sorbet/rbi/gems/tapioca@0.9.2.rbi +3181 -0
  114. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  115. data/sorbet/rbi/gems/timeout@0.3.0.rbi +142 -0
  116. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5896 -0
  117. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +48 -0
  118. data/sorbet/rbi/gems/unparser@0.6.5.rbi +4529 -0
  119. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2582 -0
  120. data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +993 -0
  121. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +388 -0
  122. data/sorbet/rbi/gems/yard@0.9.28.rbi +18242 -0
  123. data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +867 -0
  124. data/sorbet/rbi/shims/psych.rbi +5 -0
  125. data/sorbet/tapioca/require.rb +2 -3
  126. metadata +88 -157
  127. data/.github/probots.yml +0 -2
  128. data/library.yml +0 -6
  129. data/service.yml +0 -1
  130. data/sorbet/rbi/gems/actioncable@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -860
  131. data/sorbet/rbi/gems/actionmailbox@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -568
  132. data/sorbet/rbi/gems/actionmailer@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -587
  133. data/sorbet/rbi/gems/actionpack@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -5314
  134. data/sorbet/rbi/gems/actiontext@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -699
  135. data/sorbet/rbi/gems/actionview@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -2515
  136. data/sorbet/rbi/gems/activejob@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -624
  137. data/sorbet/rbi/gems/activemodel@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -1248
  138. data/sorbet/rbi/gems/activerecord@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8363
  139. data/sorbet/rbi/gems/activestorage@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -876
  140. data/sorbet/rbi/gems/activesupport@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -3987
  141. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -40
  142. data/sorbet/rbi/gems/commander@4.5.2.rbi +0 -8
  143. data/sorbet/rbi/gems/concurrent-ruby@1.1.8.rbi +0 -1969
  144. data/sorbet/rbi/gems/constant_resolver@0.1.5.rbi +0 -26
  145. data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -41
  146. data/sorbet/rbi/gems/globalid@0.4.2.rbi +0 -178
  147. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  148. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -600
  149. data/sorbet/rbi/gems/loofah@2.9.0.rbi +0 -274
  150. data/sorbet/rbi/gems/m@1.5.1.rbi +0 -108
  151. data/sorbet/rbi/gems/marcel@1.0.0.rbi +0 -70
  152. data/sorbet/rbi/gems/mini_mime@1.0.3.rbi +0 -71
  153. data/sorbet/rbi/gems/minitest-focus@1.2.1.rbi +0 -8
  154. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -544
  155. data/sorbet/rbi/gems/mocha@1.12.0.rbi +0 -953
  156. data/sorbet/rbi/gems/nio4r@2.5.7.rbi +0 -90
  157. data/sorbet/rbi/gems/nokogiri@1.11.2.rbi +0 -1647
  158. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -117
  159. data/sorbet/rbi/gems/parlour@6.0.0.rbi +0 -1272
  160. data/sorbet/rbi/gems/parser@3.0.0.0.rbi +0 -1745
  161. data/sorbet/rbi/gems/pry@0.14.0.rbi +0 -8
  162. data/sorbet/rbi/gems/psych@3.3.2.rbi +0 -24
  163. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -57
  164. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -335
  165. data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1718
  166. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -213
  167. data/sorbet/rbi/gems/rails@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8
  168. data/sorbet/rbi/gems/railties@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -880
  169. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -155
  170. data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -837
  171. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
  172. data/sorbet/rbi/gems/rexml@3.2.4.rbi +0 -8
  173. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -8
  174. data/sorbet/rbi/gems/rubocop-performance@1.10.2.rbi +0 -8
  175. data/sorbet/rbi/gems/rubocop-sorbet@0.6.1.rbi +0 -8
  176. data/sorbet/rbi/gems/rubocop@1.12.0.rbi +0 -8
  177. data/sorbet/rbi/gems/smart_properties@1.15.0.rbi +0 -168
  178. data/sorbet/rbi/gems/spoom@1.1.0.rbi +0 -1061
  179. data/sorbet/rbi/gems/spring@2.1.1.rbi +0 -160
  180. data/sorbet/rbi/gems/sprockets-rails@3.2.2.rbi +0 -451
  181. data/sorbet/rbi/gems/sprockets@4.0.2.rbi +0 -1133
  182. data/sorbet/rbi/gems/tapioca@0.4.19.rbi +0 -603
  183. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -893
  184. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -566
  185. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
  186. data/sorbet/rbi/gems/websocket-driver@0.7.3.rbi +0 -438
  187. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -177
@@ -1,1969 +0,0 @@
1
- # DO NOT EDIT MANUALLY
2
- # This is an autogenerated file for types exported from the `concurrent-ruby` gem.
3
- # Please instead update this file by running `bin/tapioca sync`.
4
-
5
- # typed: true
6
-
7
- module Concurrent
8
- extend(::Concurrent::Utility::EngineDetector)
9
- extend(::Concurrent::Utility::NativeExtensionLoader)
10
- extend(::Logger::Severity)
11
- extend(::Concurrent::Concern::Logging)
12
- extend(::Concurrent::Concern::Deprecation)
13
-
14
-
15
- private
16
-
17
- def abort_transaction; end
18
- def atomically; end
19
- def call_dataflow(method, executor, *inputs, &block); end
20
- def dataflow(*inputs, &block); end
21
- def dataflow!(*inputs, &block); end
22
- def dataflow_with(executor, *inputs, &block); end
23
- def dataflow_with!(executor, *inputs, &block); end
24
- def leave_transaction; end
25
- def monotonic_time; end
26
-
27
- class << self
28
- def abort_transaction; end
29
- def atomically; end
30
- def call_dataflow(method, executor, *inputs, &block); end
31
- def create_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
32
- def create_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
33
- def dataflow(*inputs, &block); end
34
- def dataflow!(*inputs, &block); end
35
- def dataflow_with(executor, *inputs, &block); end
36
- def dataflow_with!(executor, *inputs, &block); end
37
- def disable_at_exit_handlers!; end
38
- def executor(executor_identifier); end
39
- def global_fast_executor; end
40
- def global_immediate_executor; end
41
- def global_io_executor; end
42
- def global_logger; end
43
- def global_logger=(value); end
44
- def global_timer_set; end
45
- def leave_transaction; end
46
- def monotonic_time; end
47
- def new_fast_executor(opts = T.unsafe(nil)); end
48
- def new_io_executor(opts = T.unsafe(nil)); end
49
- def physical_processor_count; end
50
- def processor_count; end
51
- def processor_counter; end
52
- def use_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
53
- def use_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
54
- end
55
- end
56
-
57
- class Concurrent::AbstractExchanger < ::Concurrent::Synchronization::Object
58
- def initialize; end
59
-
60
- def exchange(value, timeout = T.unsafe(nil)); end
61
- def exchange!(value, timeout = T.unsafe(nil)); end
62
- def try_exchange(value, timeout = T.unsafe(nil)); end
63
-
64
- private
65
-
66
- def do_exchange(value, timeout); end
67
- end
68
-
69
- class Concurrent::AbstractExecutorService < ::Concurrent::Synchronization::LockableObject
70
- include(::Logger::Severity)
71
- include(::Concurrent::Concern::Logging)
72
- include(::Concurrent::ExecutorService)
73
- include(::Concurrent::Concern::Deprecation)
74
-
75
- def initialize(opts = T.unsafe(nil), &block); end
76
-
77
- def auto_terminate=(value); end
78
- def auto_terminate?; end
79
- def fallback_policy; end
80
- def kill; end
81
- def name; end
82
- def running?; end
83
- def shutdown; end
84
- def shutdown?; end
85
- def shuttingdown?; end
86
- def to_s; end
87
- def wait_for_termination(timeout = T.unsafe(nil)); end
88
-
89
- private
90
-
91
- def handle_fallback(*args); end
92
- def ns_auto_terminate?; end
93
- def ns_execute(*args, &task); end
94
- def ns_kill_execution; end
95
- def ns_shutdown_execution; end
96
- end
97
-
98
- Concurrent::AbstractExecutorService::FALLBACK_POLICIES = T.let(T.unsafe(nil), Array)
99
-
100
- class Concurrent::AbstractThreadLocalVar
101
- def initialize(default = T.unsafe(nil), &default_block); end
102
-
103
- def bind(value, &block); end
104
- def value; end
105
- def value=(value); end
106
-
107
- protected
108
-
109
- def allocate_storage; end
110
- def default; end
111
- end
112
-
113
- class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
114
- include(::Concurrent::Concern::Observable)
115
-
116
- def initialize(initial, opts = T.unsafe(nil)); end
117
-
118
- def <<(action); end
119
- def await; end
120
- def await_for(timeout); end
121
- def await_for!(timeout); end
122
- def deref; end
123
- def error; end
124
- def error_mode; end
125
- def failed?; end
126
- def post(*args, &action); end
127
- def reason; end
128
- def restart(new_value, opts = T.unsafe(nil)); end
129
- def send(*args, &action); end
130
- def send!(*args, &action); end
131
- def send_off(*args, &action); end
132
- def send_off!(*args, &action); end
133
- def send_via(executor, *args, &action); end
134
- def send_via!(executor, *args, &action); end
135
- def stopped?; end
136
- def value; end
137
- def wait(timeout = T.unsafe(nil)); end
138
-
139
- private
140
-
141
- def enqueue_action_job(action, args, executor); end
142
- def enqueue_await_job(latch); end
143
- def execute_next_job; end
144
- def handle_error(error); end
145
- def ns_enqueue_job(job, index = T.unsafe(nil)); end
146
- def ns_find_last_job_for_thread; end
147
- def ns_initialize(initial, opts); end
148
- def ns_post_next_job; end
149
- def ns_validate(value); end
150
-
151
- class << self
152
- def await(*agents); end
153
- def await_for(timeout, *agents); end
154
- def await_for!(timeout, *agents); end
155
- end
156
- end
157
-
158
- class Concurrent::Agent::Error < ::StandardError
159
- def initialize(message = T.unsafe(nil)); end
160
- end
161
-
162
- class Concurrent::Agent::ValidationError < ::Concurrent::Agent::Error
163
- def initialize(message = T.unsafe(nil)); end
164
- end
165
-
166
- class Concurrent::Array < ::Array
167
- end
168
-
169
- module Concurrent::Async
170
- def async; end
171
- def await; end
172
- def call; end
173
- def cast; end
174
- def init_synchronization; end
175
-
176
- class << self
177
- def included(base); end
178
- def validate_argc(obj, method, *args); end
179
- end
180
- end
181
-
182
- class Concurrent::Atom < ::Concurrent::Synchronization::Object
183
- include(::Concurrent::Concern::Observable)
184
-
185
- def initialize(value, opts = T.unsafe(nil)); end
186
-
187
- def __initialize_atomic_fields__; end
188
- def compare_and_set(old_value, new_value); end
189
- def deref; end
190
- def reset(new_value); end
191
- def swap(*args); end
192
- def value; end
193
-
194
- private
195
-
196
- def compare_and_set_value(expected, value); end
197
- def swap_value(value); end
198
- def update_value(&block); end
199
- def valid?(new_value); end
200
- def value=(value); end
201
-
202
- class << self
203
- def new(*args, &block); end
204
- end
205
- end
206
-
207
- class Concurrent::AtomicBoolean < ::Concurrent::MutexAtomicBoolean
208
- def inspect; end
209
- def to_s; end
210
- end
211
-
212
- module Concurrent::AtomicDirectUpdate
213
- def try_update; end
214
- def try_update!; end
215
- def update; end
216
- end
217
-
218
- class Concurrent::AtomicFixnum < ::Concurrent::MutexAtomicFixnum
219
- def inspect; end
220
- def to_s; end
221
- end
222
-
223
- class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Object
224
- def initialize(value = T.unsafe(nil), mark = T.unsafe(nil)); end
225
-
226
- def __initialize_atomic_fields__; end
227
- def compare_and_set(expected_val, new_val, expected_mark, new_mark); end
228
- def compare_and_swap(expected_val, new_val, expected_mark, new_mark); end
229
- def get; end
230
- def mark; end
231
- def marked?; end
232
- def set(new_val, new_mark); end
233
- def try_update; end
234
- def try_update!; end
235
- def update; end
236
- def value; end
237
-
238
- private
239
-
240
- def compare_and_set_reference(expected, value); end
241
- def immutable_array(*args); end
242
- def reference; end
243
- def reference=(value); end
244
- def swap_reference(value); end
245
- def update_reference(&block); end
246
-
247
- class << self
248
- def new(*args, &block); end
249
- end
250
- end
251
-
252
- module Concurrent::AtomicNumericCompareAndSetWrapper
253
- def compare_and_set(old_value, new_value); end
254
- end
255
-
256
- class Concurrent::AtomicReference < ::Concurrent::MutexAtomicReference
257
- def inspect; end
258
- def to_s; end
259
- end
260
-
261
- class Concurrent::CachedThreadPool < ::Concurrent::ThreadPoolExecutor
262
- def initialize(opts = T.unsafe(nil)); end
263
-
264
-
265
- private
266
-
267
- def ns_initialize(opts); end
268
- end
269
-
270
- class Concurrent::CancelledOperationError < ::Concurrent::Error
271
- end
272
-
273
- module Concurrent::Collection
274
- end
275
-
276
- class Concurrent::Collection::CopyOnNotifyObserverSet < ::Concurrent::Synchronization::LockableObject
277
- def initialize; end
278
-
279
- def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
280
- def count_observers; end
281
- def delete_observer(observer); end
282
- def delete_observers; end
283
- def notify_and_delete_observers(*args, &block); end
284
- def notify_observers(*args, &block); end
285
-
286
- protected
287
-
288
- def ns_initialize; end
289
-
290
- private
291
-
292
- def duplicate_and_clear_observers; end
293
- def duplicate_observers; end
294
- def notify_to(observers, *args); end
295
- end
296
-
297
- class Concurrent::Collection::CopyOnWriteObserverSet < ::Concurrent::Synchronization::LockableObject
298
- def initialize; end
299
-
300
- def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
301
- def count_observers; end
302
- def delete_observer(observer); end
303
- def delete_observers; end
304
- def notify_and_delete_observers(*args, &block); end
305
- def notify_observers(*args, &block); end
306
-
307
- protected
308
-
309
- def ns_initialize; end
310
-
311
- private
312
-
313
- def clear_observers_and_return_old; end
314
- def notify_to(observers, *args); end
315
- def observers; end
316
- def observers=(new_set); end
317
- end
318
-
319
- Concurrent::Collection::MapImplementation = Concurrent::Collection::MriMapBackend
320
-
321
- class Concurrent::Collection::MriMapBackend < ::Concurrent::Collection::NonConcurrentMapBackend
322
- def initialize(options = T.unsafe(nil)); end
323
-
324
- def []=(key, value); end
325
- def clear; end
326
- def compute(key); end
327
- def compute_if_absent(key); end
328
- def compute_if_present(key); end
329
- def delete(key); end
330
- def delete_pair(key, value); end
331
- def get_and_set(key, value); end
332
- def merge_pair(key, value); end
333
- def replace_if_exists(key, new_value); end
334
- def replace_pair(key, old_value, new_value); end
335
- end
336
-
337
- class Concurrent::Collection::NonConcurrentMapBackend
338
- def initialize(options = T.unsafe(nil)); end
339
-
340
- def [](key); end
341
- def []=(key, value); end
342
- def clear; end
343
- def compute(key); end
344
- def compute_if_absent(key); end
345
- def compute_if_present(key); end
346
- def delete(key); end
347
- def delete_pair(key, value); end
348
- def each_pair; end
349
- def get_and_set(key, value); end
350
- def get_or_default(key, default_value); end
351
- def key?(key); end
352
- def merge_pair(key, value); end
353
- def replace_if_exists(key, new_value); end
354
- def replace_pair(key, old_value, new_value); end
355
- def size; end
356
-
357
- private
358
-
359
- def _get(key); end
360
- def _set(key, value); end
361
- def dupped_backend; end
362
- def initialize_copy(other); end
363
- def pair?(key, expected_value); end
364
- def store_computed_value(key, new_value); end
365
- end
366
-
367
- class Concurrent::Collection::NonConcurrentPriorityQueue < ::Concurrent::Collection::RubyNonConcurrentPriorityQueue
368
- def <<(item); end
369
- def deq; end
370
- def enq(item); end
371
- def has_priority?(item); end
372
- def shift; end
373
- def size; end
374
- end
375
-
376
- class Concurrent::Collection::RubyNonConcurrentPriorityQueue
377
- def initialize(opts = T.unsafe(nil)); end
378
-
379
- def <<(item); end
380
- def clear; end
381
- def delete(item); end
382
- def deq; end
383
- def empty?; end
384
- def enq(item); end
385
- def has_priority?(item); end
386
- def include?(item); end
387
- def length; end
388
- def peek; end
389
- def pop; end
390
- def push(item); end
391
- def shift; end
392
- def size; end
393
-
394
- private
395
-
396
- def ordered?(x, y); end
397
- def sink(k); end
398
- def swap(x, y); end
399
- def swim(k); end
400
-
401
- class << self
402
- def from_list(list, opts = T.unsafe(nil)); end
403
- end
404
- end
405
-
406
- module Concurrent::Concern
407
- end
408
-
409
- module Concurrent::Concern::Deprecation
410
- include(::Logger::Severity)
411
- include(::Concurrent::Concern::Logging)
412
- extend(::Logger::Severity)
413
- extend(::Concurrent::Concern::Logging)
414
- extend(::Concurrent::Concern::Deprecation)
415
-
416
- def deprecated(message, strip = T.unsafe(nil)); end
417
- def deprecated_method(old_name, new_name); end
418
- end
419
-
420
- module Concurrent::Concern::Dereferenceable
421
- def deref; end
422
- def value; end
423
-
424
- protected
425
-
426
- def apply_deref_options(value); end
427
- def ns_set_deref_options(opts); end
428
- def set_deref_options(opts = T.unsafe(nil)); end
429
- def value=(value); end
430
- end
431
-
432
- module Concurrent::Concern::Logging
433
- include(::Logger::Severity)
434
-
435
- def log(level, progname, message = T.unsafe(nil), &block); end
436
- end
437
-
438
- module Concurrent::Concern::Obligation
439
- include(::Concurrent::Concern::Dereferenceable)
440
-
441
- def complete?; end
442
- def exception(*args); end
443
- def fulfilled?; end
444
- def incomplete?; end
445
- def no_error!(timeout = T.unsafe(nil)); end
446
- def pending?; end
447
- def realized?; end
448
- def reason; end
449
- def rejected?; end
450
- def state; end
451
- def unscheduled?; end
452
- def value(timeout = T.unsafe(nil)); end
453
- def value!(timeout = T.unsafe(nil)); end
454
- def wait(timeout = T.unsafe(nil)); end
455
- def wait!(timeout = T.unsafe(nil)); end
456
-
457
- protected
458
-
459
- def compare_and_set_state(next_state, *expected_current); end
460
- def event; end
461
- def get_arguments_from(opts = T.unsafe(nil)); end
462
- def if_state(*expected_states); end
463
- def init_obligation; end
464
- def ns_check_state?(expected); end
465
- def ns_set_state(value); end
466
- def set_state(success, value, reason); end
467
- def state=(value); end
468
- end
469
-
470
- module Concurrent::Concern::Observable
471
- def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
472
- def count_observers; end
473
- def delete_observer(observer); end
474
- def delete_observers; end
475
- def with_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
476
-
477
- protected
478
-
479
- def observers; end
480
- def observers=(_arg0); end
481
- end
482
-
483
- class Concurrent::ConcurrentUpdateError < ::ThreadError
484
- end
485
-
486
- Concurrent::ConcurrentUpdateError::CONC_UP_ERR_BACKTRACE = T.let(T.unsafe(nil), Array)
487
-
488
- class Concurrent::ConfigurationError < ::Concurrent::Error
489
- end
490
-
491
- class Concurrent::CountDownLatch < ::Concurrent::MutexCountDownLatch
492
- end
493
-
494
- class Concurrent::CyclicBarrier < ::Concurrent::Synchronization::LockableObject
495
- def initialize(parties, &block); end
496
-
497
- def broken?; end
498
- def number_waiting; end
499
- def parties; end
500
- def reset; end
501
- def wait(timeout = T.unsafe(nil)); end
502
-
503
- protected
504
-
505
- def ns_generation_done(generation, status, continue = T.unsafe(nil)); end
506
- def ns_initialize(parties, &block); end
507
- def ns_next_generation; end
508
- end
509
-
510
- class Concurrent::Delay < ::Concurrent::Synchronization::LockableObject
511
- include(::Concurrent::Concern::Dereferenceable)
512
- include(::Concurrent::Concern::Obligation)
513
-
514
- def initialize(opts = T.unsafe(nil), &block); end
515
-
516
- def reconfigure(&block); end
517
- def value(timeout = T.unsafe(nil)); end
518
- def value!(timeout = T.unsafe(nil)); end
519
- def wait(timeout = T.unsafe(nil)); end
520
-
521
- protected
522
-
523
- def ns_initialize(opts, &block); end
524
-
525
- private
526
-
527
- def execute_task_once; end
528
- end
529
-
530
- class Concurrent::DependencyCounter
531
- def initialize(count, &block); end
532
-
533
- def update(time, value, reason); end
534
- end
535
-
536
- class Concurrent::Error < ::StandardError
537
- end
538
-
539
- class Concurrent::Event < ::Concurrent::Synchronization::LockableObject
540
- def initialize; end
541
-
542
- def reset; end
543
- def set; end
544
- def set?; end
545
- def try?; end
546
- def wait(timeout = T.unsafe(nil)); end
547
-
548
- protected
549
-
550
- def ns_initialize; end
551
- def ns_set; end
552
- end
553
-
554
- class Concurrent::Exchanger < ::Concurrent::RubyExchanger
555
- end
556
-
557
- module Concurrent::ExecutorService
558
- include(::Logger::Severity)
559
- include(::Concurrent::Concern::Logging)
560
-
561
- def <<(task); end
562
- def can_overflow?; end
563
- def post(*args, &task); end
564
- def serialized?; end
565
- end
566
-
567
- class Concurrent::FixedThreadPool < ::Concurrent::ThreadPoolExecutor
568
- def initialize(num_threads, opts = T.unsafe(nil)); end
569
- end
570
-
571
- class Concurrent::Future < ::Concurrent::IVar
572
- def initialize(opts = T.unsafe(nil), &block); end
573
-
574
- def cancel; end
575
- def cancelled?; end
576
- def execute; end
577
- def set(value = T.unsafe(nil), &block); end
578
- def wait_or_cancel(timeout); end
579
-
580
- protected
581
-
582
- def ns_initialize(value, opts); end
583
-
584
- class << self
585
- def execute(opts = T.unsafe(nil), &block); end
586
- end
587
- end
588
-
589
- class Concurrent::Hash < ::Hash
590
- end
591
-
592
- class Concurrent::IVar < ::Concurrent::Synchronization::LockableObject
593
- include(::Concurrent::Concern::Dereferenceable)
594
- include(::Concurrent::Concern::Obligation)
595
- include(::Concurrent::Concern::Observable)
596
-
597
- def initialize(value = T.unsafe(nil), opts = T.unsafe(nil), &block); end
598
-
599
- def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
600
- def fail(reason = T.unsafe(nil)); end
601
- def set(value = T.unsafe(nil)); end
602
- def try_set(value = T.unsafe(nil), &block); end
603
-
604
- protected
605
-
606
- def check_for_block_or_value!(block_given, value); end
607
- def complete(success, value, reason); end
608
- def complete_without_notification(success, value, reason); end
609
- def notify_observers(value, reason); end
610
- def ns_complete_without_notification(success, value, reason); end
611
- def ns_initialize(value, opts); end
612
- def safe_execute(task, args = T.unsafe(nil)); end
613
- end
614
-
615
- class Concurrent::IllegalOperationError < ::Concurrent::Error
616
- end
617
-
618
- class Concurrent::ImmediateExecutor < ::Concurrent::AbstractExecutorService
619
- include(::Concurrent::SerialExecutorService)
620
-
621
- def initialize; end
622
-
623
- def <<(task); end
624
- def kill; end
625
- def post(*args, &task); end
626
- def running?; end
627
- def shutdown; end
628
- def shutdown?; end
629
- def shuttingdown?; end
630
- def wait_for_termination(timeout = T.unsafe(nil)); end
631
- end
632
-
633
- class Concurrent::ImmutabilityError < ::Concurrent::Error
634
- end
635
-
636
- module Concurrent::ImmutableStruct
637
- include(::Concurrent::Synchronization::AbstractStruct)
638
-
639
- def ==(other); end
640
- def [](member); end
641
- def each(&block); end
642
- def each_pair(&block); end
643
- def inspect; end
644
- def merge(other, &block); end
645
- def select(&block); end
646
- def to_a; end
647
- def to_h; end
648
- def to_s; end
649
- def values; end
650
- def values_at(*indexes); end
651
-
652
- private
653
-
654
- def initialize_copy(original); end
655
-
656
- class << self
657
- def included(base); end
658
- def new(*args, &block); end
659
- end
660
- end
661
-
662
- class Concurrent::IndirectImmediateExecutor < ::Concurrent::ImmediateExecutor
663
- def initialize; end
664
-
665
- def post(*args, &task); end
666
- end
667
-
668
- class Concurrent::InitializationError < ::Concurrent::Error
669
- end
670
-
671
- class Concurrent::LifecycleError < ::Concurrent::Error
672
- end
673
-
674
- class Concurrent::LockFreeStack < ::Concurrent::Synchronization::Object
675
- include(::Enumerable)
676
-
677
- def initialize(head = T.unsafe(nil)); end
678
-
679
- def __initialize_atomic_fields__; end
680
- def clear; end
681
- def clear_each(&block); end
682
- def clear_if(head); end
683
- def compare_and_clear(head); end
684
- def compare_and_pop(head); end
685
- def compare_and_push(head, value); end
686
- def each(head = T.unsafe(nil)); end
687
- def empty?(head = T.unsafe(nil)); end
688
- def inspect; end
689
- def peek; end
690
- def pop; end
691
- def push(value); end
692
- def replace_if(head, new_head); end
693
- def to_s; end
694
-
695
- private
696
-
697
- def compare_and_set_head(expected, value); end
698
- def head; end
699
- def head=(value); end
700
- def swap_head(value); end
701
- def update_head(&block); end
702
-
703
- class << self
704
- def new(*args, &block); end
705
- def of1(value); end
706
- def of2(value1, value2); end
707
- end
708
- end
709
-
710
- Concurrent::LockFreeStack::EMPTY = T.let(T.unsafe(nil), Concurrent::LockFreeStack::Node)
711
-
712
- class Concurrent::LockFreeStack::Node
713
- def initialize(value, next_node); end
714
-
715
- def next_node; end
716
- def value; end
717
- def value=(_arg0); end
718
-
719
- class << self
720
- def [](*_arg0); end
721
- end
722
- end
723
-
724
- class Concurrent::MVar < ::Concurrent::Synchronization::Object
725
- include(::Concurrent::Concern::Dereferenceable)
726
-
727
- def initialize(value = T.unsafe(nil), opts = T.unsafe(nil)); end
728
-
729
- def borrow(timeout = T.unsafe(nil)); end
730
- def empty?; end
731
- def full?; end
732
- def modify(timeout = T.unsafe(nil)); end
733
- def modify!; end
734
- def put(value, timeout = T.unsafe(nil)); end
735
- def set!(value); end
736
- def take(timeout = T.unsafe(nil)); end
737
- def try_put!(value); end
738
- def try_take!; end
739
-
740
- protected
741
-
742
- def synchronize(&block); end
743
-
744
- private
745
-
746
- def unlocked_empty?; end
747
- def unlocked_full?; end
748
- def wait_for_empty(timeout); end
749
- def wait_for_full(timeout); end
750
- def wait_while(condition, timeout); end
751
-
752
- class << self
753
- def new(*args, &block); end
754
- end
755
- end
756
-
757
- Concurrent::MVar::EMPTY = T.let(T.unsafe(nil), Object)
758
-
759
- Concurrent::MVar::TIMEOUT = T.let(T.unsafe(nil), Object)
760
-
761
- class Concurrent::Map < ::Concurrent::Collection::MriMapBackend
762
- def initialize(options = T.unsafe(nil), &block); end
763
-
764
- def [](key); end
765
- def each; end
766
- def each_key; end
767
- def each_pair; end
768
- def each_value; end
769
- def empty?; end
770
- def fetch(key, default_value = T.unsafe(nil)); end
771
- def fetch_or_store(key, default_value = T.unsafe(nil)); end
772
- def get(key); end
773
- def inspect; end
774
- def key(value); end
775
- def keys; end
776
- def marshal_dump; end
777
- def marshal_load(hash); end
778
- def put(key, value); end
779
- def put_if_absent(key, value); end
780
- def value?(value); end
781
- def values; end
782
-
783
- private
784
-
785
- def initialize_copy(other); end
786
- def populate_from(hash); end
787
- def raise_fetch_no_key; end
788
- def validate_options_hash!(options); end
789
- end
790
-
791
- class Concurrent::MaxRestartFrequencyError < ::Concurrent::Error
792
- end
793
-
794
- class Concurrent::Maybe < ::Concurrent::Synchronization::Object
795
- include(::Comparable)
796
-
797
- def initialize(just, nothing); end
798
-
799
- def <=>(other); end
800
- def fulfilled?; end
801
- def just; end
802
- def just?; end
803
- def nothing; end
804
- def nothing?; end
805
- def or(other); end
806
- def reason; end
807
- def rejected?; end
808
- def value; end
809
-
810
- class << self
811
- def from(*args); end
812
- def just(value); end
813
- def nothing(error = T.unsafe(nil)); end
814
-
815
- private
816
-
817
- def new(*args, &block); end
818
- end
819
- end
820
-
821
- Concurrent::Maybe::NONE = T.let(T.unsafe(nil), Object)
822
-
823
- class Concurrent::MultipleAssignmentError < ::Concurrent::Error
824
- def initialize(message = T.unsafe(nil), inspection_data = T.unsafe(nil)); end
825
-
826
- def inspect; end
827
- def inspection_data; end
828
- end
829
-
830
- class Concurrent::MultipleErrors < ::Concurrent::Error
831
- def initialize(errors, message = T.unsafe(nil)); end
832
-
833
- def errors; end
834
- end
835
-
836
- module Concurrent::MutableStruct
837
- include(::Concurrent::Synchronization::AbstractStruct)
838
-
839
- def ==(other); end
840
- def [](member); end
841
- def []=(member, value); end
842
- def each(&block); end
843
- def each_pair(&block); end
844
- def inspect; end
845
- def merge(other, &block); end
846
- def select(&block); end
847
- def to_a; end
848
- def to_h; end
849
- def to_s; end
850
- def values; end
851
- def values_at(*indexes); end
852
-
853
- private
854
-
855
- def initialize_copy(original); end
856
-
857
- class << self
858
- def new(*args, &block); end
859
- end
860
- end
861
-
862
- class Concurrent::MutexAtomicBoolean < ::Concurrent::Synchronization::LockableObject
863
- def initialize(initial = T.unsafe(nil)); end
864
-
865
- def false?; end
866
- def make_false; end
867
- def make_true; end
868
- def true?; end
869
- def value; end
870
- def value=(value); end
871
-
872
- protected
873
-
874
- def ns_initialize(initial); end
875
-
876
- private
877
-
878
- def ns_make_value(value); end
879
- end
880
-
881
- class Concurrent::MutexAtomicFixnum < ::Concurrent::Synchronization::LockableObject
882
- def initialize(initial = T.unsafe(nil)); end
883
-
884
- def compare_and_set(expect, update); end
885
- def decrement(delta = T.unsafe(nil)); end
886
- def down(delta = T.unsafe(nil)); end
887
- def increment(delta = T.unsafe(nil)); end
888
- def up(delta = T.unsafe(nil)); end
889
- def update; end
890
- def value; end
891
- def value=(value); end
892
-
893
- protected
894
-
895
- def ns_initialize(initial); end
896
-
897
- private
898
-
899
- def ns_set(value); end
900
- end
901
-
902
- class Concurrent::MutexAtomicReference < ::Concurrent::Synchronization::LockableObject
903
- include(::Concurrent::AtomicDirectUpdate)
904
- include(::Concurrent::AtomicNumericCompareAndSetWrapper)
905
-
906
- def initialize(value = T.unsafe(nil)); end
907
-
908
- def _compare_and_set(old_value, new_value); end
909
- def compare_and_swap(old_value, new_value); end
910
- def get; end
911
- def get_and_set(new_value); end
912
- def set(new_value); end
913
- def swap(new_value); end
914
- def value; end
915
- def value=(new_value); end
916
-
917
- protected
918
-
919
- def ns_initialize(value); end
920
- end
921
-
922
- class Concurrent::MutexCountDownLatch < ::Concurrent::Synchronization::LockableObject
923
- def initialize(count = T.unsafe(nil)); end
924
-
925
- def count; end
926
- def count_down; end
927
- def wait(timeout = T.unsafe(nil)); end
928
-
929
- protected
930
-
931
- def ns_initialize(count); end
932
- end
933
-
934
- class Concurrent::MutexSemaphore < ::Concurrent::Synchronization::LockableObject
935
- def initialize(count); end
936
-
937
- def acquire(permits = T.unsafe(nil)); end
938
- def available_permits; end
939
- def drain_permits; end
940
- def reduce_permits(reduction); end
941
- def release(permits = T.unsafe(nil)); end
942
- def try_acquire(permits = T.unsafe(nil), timeout = T.unsafe(nil)); end
943
-
944
- protected
945
-
946
- def ns_initialize(count); end
947
-
948
- private
949
-
950
- def try_acquire_now(permits); end
951
- def try_acquire_timed(permits, timeout); end
952
- end
953
-
954
- Concurrent::NULL = T.let(T.unsafe(nil), Object)
955
-
956
- Concurrent::NULL_LOGGER = T.let(T.unsafe(nil), Proc)
957
-
958
- module Concurrent::Options
959
- class << self
960
- def executor(executor_identifier); end
961
- def executor_from_options(opts = T.unsafe(nil)); end
962
- end
963
- end
964
-
965
- class Concurrent::Promise < ::Concurrent::IVar
966
- def initialize(opts = T.unsafe(nil), &block); end
967
-
968
- def catch(&block); end
969
- def execute; end
970
- def fail(reason = T.unsafe(nil)); end
971
- def flat_map(&block); end
972
- def on_error(&block); end
973
- def on_success(&block); end
974
- def rescue(&block); end
975
- def set(value = T.unsafe(nil), &block); end
976
- def then(*args, &block); end
977
- def zip(*others); end
978
-
979
- protected
980
-
981
- def complete(success, value, reason); end
982
- def notify_child(child); end
983
- def ns_initialize(value, opts); end
984
- def on_fulfill(result); end
985
- def on_reject(reason); end
986
- def realize(task); end
987
- def root?; end
988
- def set_pending; end
989
- def set_state!(success, value, reason); end
990
- def synchronized_set_state!(success, value, reason); end
991
-
992
- class << self
993
- def aggregate(method, *promises); end
994
- def all?(*promises); end
995
- def any?(*promises); end
996
- def execute(opts = T.unsafe(nil), &block); end
997
- def fulfill(value, opts = T.unsafe(nil)); end
998
- def reject(reason, opts = T.unsafe(nil)); end
999
- def zip(*promises); end
1000
- end
1001
- end
1002
-
1003
- class Concurrent::PromiseExecutionError < ::StandardError
1004
- end
1005
-
1006
- module Concurrent::Promises
1007
- extend(::Concurrent::Promises::FactoryMethods::Configuration)
1008
- extend(::Concurrent::Promises::FactoryMethods)
1009
- end
1010
-
1011
- class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization::Object
1012
- def initialize(promise, default_executor); end
1013
-
1014
- def __initialize_atomic_fields__; end
1015
- def add_callback_clear_delayed_node(node); end
1016
- def add_callback_notify_blocked(promise, index); end
1017
- def blocks; end
1018
- def callbacks; end
1019
- def chain(*args, &task); end
1020
- def chain_on(executor, *args, &task); end
1021
- def chain_resolvable(resolvable); end
1022
- def default_executor; end
1023
- def inspect; end
1024
- def internal_state; end
1025
- def on_resolution(*args, &callback); end
1026
- def on_resolution!(*args, &callback); end
1027
- def on_resolution_using(executor, *args, &callback); end
1028
- def pending?; end
1029
- def promise; end
1030
- def resolve_with(state, raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end
1031
- def resolved?; end
1032
- def state; end
1033
- def tangle(resolvable); end
1034
- def to_s; end
1035
- def touch; end
1036
- def touched?; end
1037
- def wait(timeout = T.unsafe(nil)); end
1038
- def waiting_threads; end
1039
- def with_default_executor(executor); end
1040
- def with_hidden_resolvable; end
1041
-
1042
- private
1043
-
1044
- def add_callback(method, *args); end
1045
- def async_callback_on_resolution(state, executor, args, callback); end
1046
- def call_callback(method, state, args); end
1047
- def call_callbacks(state); end
1048
- def callback_clear_delayed_node(state, node); end
1049
- def callback_notify_blocked(state, promise, index); end
1050
- def compare_and_set_internal_state(expected, value); end
1051
- def internal_state=(value); end
1052
- def swap_internal_state(value); end
1053
- def update_internal_state(&block); end
1054
- def wait_until_resolved(timeout); end
1055
- def with_async(executor, *args, &block); end
1056
-
1057
- class << self
1058
- def new(*args, &block); end
1059
- end
1060
- end
1061
-
1062
- class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture
1063
- def &(other); end
1064
- def any(event_or_future); end
1065
- def delay; end
1066
- def schedule(intended_time); end
1067
- def then(*args, &task); end
1068
- def to_event; end
1069
- def to_future; end
1070
- def with_default_executor(executor); end
1071
- def zip(other); end
1072
- def |(event_or_future); end
1073
-
1074
- private
1075
-
1076
- def callback_on_resolution(state, args, callback); end
1077
- def rejected_resolution(raise_on_reassign, state); end
1078
- end
1079
-
1080
- module Concurrent::Promises::FactoryMethods
1081
- include(::Concurrent::Promises::FactoryMethods::Configuration)
1082
- extend(::Concurrent::ReInclude)
1083
- extend(::Concurrent::Promises::FactoryMethods::Configuration)
1084
- extend(::Concurrent::Promises::FactoryMethods)
1085
-
1086
- def any(*futures_and_or_events); end
1087
- def any_event(*futures_and_or_events); end
1088
- def any_event_on(default_executor, *futures_and_or_events); end
1089
- def any_fulfilled_future(*futures_and_or_events); end
1090
- def any_fulfilled_future_on(default_executor, *futures_and_or_events); end
1091
- def any_resolved_future(*futures_and_or_events); end
1092
- def any_resolved_future_on(default_executor, *futures_and_or_events); end
1093
- def delay(*args, &task); end
1094
- def delay_on(default_executor, *args, &task); end
1095
- def fulfilled_future(value, default_executor = T.unsafe(nil)); end
1096
- def future(*args, &task); end
1097
- def future_on(default_executor, *args, &task); end
1098
- def make_future(argument = T.unsafe(nil), default_executor = T.unsafe(nil)); end
1099
- def rejected_future(reason, default_executor = T.unsafe(nil)); end
1100
- def resolvable_event; end
1101
- def resolvable_event_on(default_executor = T.unsafe(nil)); end
1102
- def resolvable_future; end
1103
- def resolvable_future_on(default_executor = T.unsafe(nil)); end
1104
- def resolved_event(default_executor = T.unsafe(nil)); end
1105
- def resolved_future(fulfilled, value, reason, default_executor = T.unsafe(nil)); end
1106
- def schedule(intended_time, *args, &task); end
1107
- def schedule_on(default_executor, intended_time, *args, &task); end
1108
- def zip(*futures_and_or_events); end
1109
- def zip_events(*futures_and_or_events); end
1110
- def zip_events_on(default_executor, *futures_and_or_events); end
1111
- def zip_futures(*futures_and_or_events); end
1112
- def zip_futures_on(default_executor, *futures_and_or_events); end
1113
- end
1114
-
1115
- module Concurrent::Promises::FactoryMethods::Configuration
1116
- def default_executor; end
1117
- end
1118
-
1119
- class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture
1120
- def &(other); end
1121
- def any(event_or_future); end
1122
- def apply(args, block); end
1123
- def delay; end
1124
- def exception(*args); end
1125
- def flat(level = T.unsafe(nil)); end
1126
- def flat_event; end
1127
- def flat_future(level = T.unsafe(nil)); end
1128
- def fulfilled?; end
1129
- def inspect; end
1130
- def on_fulfillment(*args, &callback); end
1131
- def on_fulfillment!(*args, &callback); end
1132
- def on_fulfillment_using(executor, *args, &callback); end
1133
- def on_rejection(*args, &callback); end
1134
- def on_rejection!(*args, &callback); end
1135
- def on_rejection_using(executor, *args, &callback); end
1136
- def reason(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil)); end
1137
- def rejected?; end
1138
- def rescue(*args, &task); end
1139
- def rescue_on(executor, *args, &task); end
1140
- def result(timeout = T.unsafe(nil)); end
1141
- def run(run_test = T.unsafe(nil)); end
1142
- def schedule(intended_time); end
1143
- def then(*args, &task); end
1144
- def then_on(executor, *args, &task); end
1145
- def to_event; end
1146
- def to_future; end
1147
- def to_s; end
1148
- def value(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil)); end
1149
- def value!(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil)); end
1150
- def wait!(timeout = T.unsafe(nil)); end
1151
- def with_default_executor(executor); end
1152
- def zip(other); end
1153
- def |(event_or_future); end
1154
-
1155
- private
1156
-
1157
- def async_callback_on_fulfillment(state, executor, args, callback); end
1158
- def async_callback_on_rejection(state, executor, args, callback); end
1159
- def callback_on_fulfillment(state, args, callback); end
1160
- def callback_on_rejection(state, args, callback); end
1161
- def callback_on_resolution(state, args, callback); end
1162
- def rejected_resolution(raise_on_reassign, state); end
1163
- def run_test(v); end
1164
- def wait_until_resolved!(timeout = T.unsafe(nil)); end
1165
- end
1166
-
1167
- module Concurrent::Promises::Resolvable
1168
- end
1169
-
1170
- class Concurrent::Promises::ResolvableEvent < ::Concurrent::Promises::Event
1171
- include(::Concurrent::Promises::Resolvable)
1172
-
1173
- def resolve(raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end
1174
- def wait(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1175
- def with_hidden_resolvable; end
1176
- end
1177
-
1178
- class Concurrent::Promises::ResolvableFuture < ::Concurrent::Promises::Future
1179
- include(::Concurrent::Promises::Resolvable)
1180
-
1181
- def evaluate_to(*args, &block); end
1182
- def evaluate_to!(*args, &block); end
1183
- def fulfill(value, raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end
1184
- def reason(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1185
- def reject(reason, raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end
1186
- def resolve(fulfilled = T.unsafe(nil), value = T.unsafe(nil), reason = T.unsafe(nil), raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end
1187
- def result(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1188
- def value(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1189
- def value!(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1190
- def wait(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1191
- def wait!(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1192
- def with_hidden_resolvable; end
1193
- end
1194
-
1195
- module Concurrent::ReInclude
1196
- def extended(base); end
1197
- def include(*modules); end
1198
- def included(base); end
1199
- end
1200
-
1201
- class Concurrent::ReadWriteLock < ::Concurrent::Synchronization::Object
1202
- def initialize; end
1203
-
1204
- def acquire_read_lock; end
1205
- def acquire_write_lock; end
1206
- def has_waiters?; end
1207
- def release_read_lock; end
1208
- def release_write_lock; end
1209
- def with_read_lock; end
1210
- def with_write_lock; end
1211
- def write_locked?; end
1212
-
1213
- private
1214
-
1215
- def max_readers?(c = T.unsafe(nil)); end
1216
- def max_writers?(c = T.unsafe(nil)); end
1217
- def running_readers(c = T.unsafe(nil)); end
1218
- def running_readers?(c = T.unsafe(nil)); end
1219
- def running_writer?(c = T.unsafe(nil)); end
1220
- def waiting_writer?(c = T.unsafe(nil)); end
1221
- def waiting_writers(c = T.unsafe(nil)); end
1222
-
1223
- class << self
1224
- def new(*args, &block); end
1225
- end
1226
- end
1227
-
1228
- Concurrent::ReadWriteLock::MAX_READERS = T.let(T.unsafe(nil), Integer)
1229
-
1230
- Concurrent::ReadWriteLock::MAX_WRITERS = T.let(T.unsafe(nil), Integer)
1231
-
1232
- Concurrent::ReadWriteLock::RUNNING_WRITER = T.let(T.unsafe(nil), Integer)
1233
-
1234
- Concurrent::ReadWriteLock::WAITING_WRITER = T.let(T.unsafe(nil), Integer)
1235
-
1236
- class Concurrent::ReentrantReadWriteLock < ::Concurrent::Synchronization::Object
1237
- def initialize; end
1238
-
1239
- def acquire_read_lock; end
1240
- def acquire_write_lock; end
1241
- def release_read_lock; end
1242
- def release_write_lock; end
1243
- def try_read_lock; end
1244
- def try_write_lock; end
1245
- def with_read_lock; end
1246
- def with_write_lock; end
1247
-
1248
- private
1249
-
1250
- def max_readers?(c = T.unsafe(nil)); end
1251
- def max_writers?(c = T.unsafe(nil)); end
1252
- def running_readers(c = T.unsafe(nil)); end
1253
- def running_readers?(c = T.unsafe(nil)); end
1254
- def running_writer?(c = T.unsafe(nil)); end
1255
- def waiting_or_running_writer?(c = T.unsafe(nil)); end
1256
- def waiting_writers(c = T.unsafe(nil)); end
1257
-
1258
- class << self
1259
- def new(*args, &block); end
1260
- end
1261
- end
1262
-
1263
- Concurrent::ReentrantReadWriteLock::MAX_READERS = T.let(T.unsafe(nil), Integer)
1264
-
1265
- Concurrent::ReentrantReadWriteLock::MAX_WRITERS = T.let(T.unsafe(nil), Integer)
1266
-
1267
- Concurrent::ReentrantReadWriteLock::READER_BITS = T.let(T.unsafe(nil), Integer)
1268
-
1269
- Concurrent::ReentrantReadWriteLock::READ_LOCK_MASK = T.let(T.unsafe(nil), Integer)
1270
-
1271
- Concurrent::ReentrantReadWriteLock::RUNNING_WRITER = T.let(T.unsafe(nil), Integer)
1272
-
1273
- Concurrent::ReentrantReadWriteLock::WAITING_WRITER = T.let(T.unsafe(nil), Integer)
1274
-
1275
- Concurrent::ReentrantReadWriteLock::WRITER_BITS = T.let(T.unsafe(nil), Integer)
1276
-
1277
- Concurrent::ReentrantReadWriteLock::WRITE_LOCK_HELD = T.let(T.unsafe(nil), Integer)
1278
-
1279
- Concurrent::ReentrantReadWriteLock::WRITE_LOCK_MASK = T.let(T.unsafe(nil), Integer)
1280
-
1281
- class Concurrent::RejectedExecutionError < ::Concurrent::Error
1282
- end
1283
-
1284
- class Concurrent::ResourceLimitError < ::Concurrent::Error
1285
- end
1286
-
1287
- class Concurrent::RubyExchanger < ::Concurrent::AbstractExchanger
1288
- def initialize; end
1289
-
1290
- def __initialize_atomic_fields__; end
1291
- def compare_and_set_slot(expected, value); end
1292
- def slot; end
1293
- def slot=(value); end
1294
- def swap_slot(value); end
1295
- def update_slot(&block); end
1296
-
1297
- private
1298
-
1299
- def do_exchange(value, timeout); end
1300
-
1301
- class << self
1302
- def new(*args, &block); end
1303
- end
1304
- end
1305
-
1306
- class Concurrent::RubyExecutorService < ::Concurrent::AbstractExecutorService
1307
- def initialize(*args, &block); end
1308
-
1309
- def kill; end
1310
- def post(*args, &task); end
1311
- def shutdown; end
1312
- def wait_for_termination(timeout = T.unsafe(nil)); end
1313
-
1314
- private
1315
-
1316
- def ns_running?; end
1317
- def ns_shutdown?; end
1318
- def ns_shutdown_execution; end
1319
- def ns_shuttingdown?; end
1320
- def stop_event; end
1321
- def stopped_event; end
1322
- end
1323
-
1324
- class Concurrent::RubySingleThreadExecutor < ::Concurrent::RubyThreadPoolExecutor
1325
- def initialize(opts = T.unsafe(nil)); end
1326
- end
1327
-
1328
- class Concurrent::RubyThreadLocalVar < ::Concurrent::AbstractThreadLocalVar
1329
- def value; end
1330
- def value=(value); end
1331
-
1332
- protected
1333
-
1334
- def allocate_storage; end
1335
-
1336
- private
1337
-
1338
- def get_default; end
1339
- def get_threadlocal_array(thread = T.unsafe(nil)); end
1340
- def next_index; end
1341
- def set_threadlocal_array(array, thread = T.unsafe(nil)); end
1342
- def value_for(thread); end
1343
-
1344
- class << self
1345
- def semi_sync(&block); end
1346
- def thread_finalizer(id); end
1347
- def thread_local_finalizer(index); end
1348
- end
1349
- end
1350
-
1351
- class Concurrent::RubyThreadPoolExecutor < ::Concurrent::RubyExecutorService
1352
- def initialize(opts = T.unsafe(nil)); end
1353
-
1354
- def can_overflow?; end
1355
- def completed_task_count; end
1356
- def idletime; end
1357
- def largest_length; end
1358
- def length; end
1359
- def max_length; end
1360
- def max_queue; end
1361
- def min_length; end
1362
- def queue_length; end
1363
- def ready_worker(worker); end
1364
- def remaining_capacity; end
1365
- def remove_busy_worker(worker); end
1366
- def scheduled_task_count; end
1367
- def synchronous; end
1368
- def worker_died(worker); end
1369
- def worker_not_old_enough(worker); end
1370
- def worker_task_completed; end
1371
-
1372
- private
1373
-
1374
- def ns_add_busy_worker; end
1375
- def ns_assign_worker(*args, &task); end
1376
- def ns_enqueue(*args, &task); end
1377
- def ns_execute(*args, &task); end
1378
- def ns_initialize(opts); end
1379
- def ns_kill_execution; end
1380
- def ns_limited_queue?; end
1381
- def ns_prune_pool; end
1382
- def ns_ready_worker(worker, success = T.unsafe(nil)); end
1383
- def ns_remove_busy_worker(worker); end
1384
- def ns_reset_if_forked; end
1385
- def ns_shutdown_execution; end
1386
- def ns_worker_died(worker); end
1387
- def ns_worker_not_old_enough(worker); end
1388
- end
1389
-
1390
- Concurrent::RubyThreadPoolExecutor::DEFAULT_MAX_POOL_SIZE = T.let(T.unsafe(nil), Integer)
1391
-
1392
- Concurrent::RubyThreadPoolExecutor::DEFAULT_MAX_QUEUE_SIZE = T.let(T.unsafe(nil), Integer)
1393
-
1394
- Concurrent::RubyThreadPoolExecutor::DEFAULT_MIN_POOL_SIZE = T.let(T.unsafe(nil), Integer)
1395
-
1396
- Concurrent::RubyThreadPoolExecutor::DEFAULT_THREAD_IDLETIMEOUT = T.let(T.unsafe(nil), Integer)
1397
-
1398
- class Concurrent::SafeTaskExecutor < ::Concurrent::Synchronization::LockableObject
1399
- def initialize(task, opts = T.unsafe(nil)); end
1400
-
1401
- def execute(*args); end
1402
- end
1403
-
1404
- class Concurrent::ScheduledTask < ::Concurrent::IVar
1405
- include(::Comparable)
1406
-
1407
- def initialize(delay, opts = T.unsafe(nil), &task); end
1408
-
1409
- def <=>(other); end
1410
- def cancel; end
1411
- def cancelled?; end
1412
- def execute; end
1413
- def executor; end
1414
- def initial_delay; end
1415
- def process_task; end
1416
- def processing?; end
1417
- def reschedule(delay); end
1418
- def reset; end
1419
- def schedule_time; end
1420
-
1421
- protected
1422
-
1423
- def ns_reschedule(delay); end
1424
- def ns_schedule(delay); end
1425
-
1426
- class << self
1427
- def execute(delay, opts = T.unsafe(nil), &task); end
1428
- end
1429
- end
1430
-
1431
- class Concurrent::Semaphore < ::Concurrent::MutexSemaphore
1432
- end
1433
-
1434
- module Concurrent::SerialExecutorService
1435
- include(::Logger::Severity)
1436
- include(::Concurrent::Concern::Logging)
1437
- include(::Concurrent::ExecutorService)
1438
-
1439
- def serialized?; end
1440
- end
1441
-
1442
- class Concurrent::SerializedExecution < ::Concurrent::Synchronization::LockableObject
1443
- include(::Logger::Severity)
1444
- include(::Concurrent::Concern::Logging)
1445
-
1446
- def initialize; end
1447
-
1448
- def post(executor, *args, &task); end
1449
- def posts(posts); end
1450
-
1451
- private
1452
-
1453
- def call_job(job); end
1454
- def ns_initialize; end
1455
- def work(job); end
1456
- end
1457
-
1458
- class Concurrent::SerializedExecution::Job < ::Struct
1459
- def args; end
1460
- def args=(_); end
1461
- def block; end
1462
- def block=(_); end
1463
- def call; end
1464
- def executor; end
1465
- def executor=(_); end
1466
-
1467
- class << self
1468
- def [](*_arg0); end
1469
- def inspect; end
1470
- def members; end
1471
- def new(*_arg0); end
1472
- end
1473
- end
1474
-
1475
- class Concurrent::SerializedExecutionDelegator < ::SimpleDelegator
1476
- include(::Logger::Severity)
1477
- include(::Concurrent::Concern::Logging)
1478
- include(::Concurrent::ExecutorService)
1479
- include(::Concurrent::SerialExecutorService)
1480
-
1481
- def initialize(executor); end
1482
-
1483
- def post(*args, &task); end
1484
- end
1485
-
1486
- class Concurrent::Set < ::Set
1487
- end
1488
-
1489
- module Concurrent::SettableStruct
1490
- include(::Concurrent::Synchronization::AbstractStruct)
1491
-
1492
- def ==(other); end
1493
- def [](member); end
1494
- def []=(member, value); end
1495
- def each(&block); end
1496
- def each_pair(&block); end
1497
- def inspect; end
1498
- def merge(other, &block); end
1499
- def select(&block); end
1500
- def to_a; end
1501
- def to_h; end
1502
- def to_s; end
1503
- def values; end
1504
- def values_at(*indexes); end
1505
-
1506
- private
1507
-
1508
- def initialize_copy(original); end
1509
-
1510
- class << self
1511
- def new(*args, &block); end
1512
- end
1513
- end
1514
-
1515
- class Concurrent::SimpleExecutorService < ::Concurrent::RubyExecutorService
1516
- def <<(task); end
1517
- def kill; end
1518
- def post(*args, &task); end
1519
- def running?; end
1520
- def shutdown; end
1521
- def shutdown?; end
1522
- def shuttingdown?; end
1523
- def wait_for_termination(timeout = T.unsafe(nil)); end
1524
-
1525
- private
1526
-
1527
- def ns_initialize(*args); end
1528
-
1529
- class << self
1530
- def <<(task); end
1531
- def post(*args); end
1532
- end
1533
- end
1534
-
1535
- class Concurrent::SingleThreadExecutor < ::Concurrent::RubySingleThreadExecutor
1536
- end
1537
-
1538
- module Concurrent::Synchronization
1539
- end
1540
-
1541
- class Concurrent::Synchronization::AbstractLockableObject < ::Concurrent::Synchronization::Object
1542
-
1543
- protected
1544
-
1545
- def ns_broadcast; end
1546
- def ns_signal; end
1547
- def ns_wait(timeout = T.unsafe(nil)); end
1548
- def ns_wait_until(timeout = T.unsafe(nil), &condition); end
1549
- def synchronize; end
1550
- end
1551
-
1552
- class Concurrent::Synchronization::AbstractObject
1553
- def initialize; end
1554
-
1555
- def full_memory_barrier; end
1556
-
1557
- class << self
1558
- def attr_volatile(*names); end
1559
- end
1560
- end
1561
-
1562
- module Concurrent::Synchronization::AbstractStruct
1563
- def initialize(*values); end
1564
-
1565
- def length; end
1566
- def members; end
1567
- def size; end
1568
-
1569
- protected
1570
-
1571
- def ns_each; end
1572
- def ns_each_pair; end
1573
- def ns_equality(other); end
1574
- def ns_get(member); end
1575
- def ns_initialize_copy; end
1576
- def ns_inspect; end
1577
- def ns_merge(other, &block); end
1578
- def ns_select; end
1579
- def ns_to_h; end
1580
- def ns_values; end
1581
- def ns_values_at(indexes); end
1582
- def pr_underscore(clazz); end
1583
-
1584
- class << self
1585
- def define_struct_class(parent, base, name, members, &block); end
1586
- end
1587
- end
1588
-
1589
- class Concurrent::Synchronization::Condition < ::Concurrent::Synchronization::LockableObject
1590
- def initialize(lock); end
1591
-
1592
- def broadcast; end
1593
- def ns_broadcast; end
1594
- def ns_signal; end
1595
- def ns_wait(timeout = T.unsafe(nil)); end
1596
- def ns_wait_until(timeout = T.unsafe(nil), &condition); end
1597
- def signal; end
1598
- def wait(timeout = T.unsafe(nil)); end
1599
- def wait_until(timeout = T.unsafe(nil), &condition); end
1600
-
1601
- class << self
1602
- def private_new(*args, &block); end
1603
- end
1604
- end
1605
-
1606
- module Concurrent::Synchronization::ConditionSignalling
1607
-
1608
- protected
1609
-
1610
- def ns_broadcast; end
1611
- def ns_signal; end
1612
- end
1613
-
1614
- class Concurrent::Synchronization::Lock < ::Concurrent::Synchronization::LockableObject
1615
- def broadcast; end
1616
- def signal; end
1617
- def wait(timeout = T.unsafe(nil)); end
1618
- def wait_until(timeout = T.unsafe(nil), &condition); end
1619
- end
1620
-
1621
- class Concurrent::Synchronization::LockableObject < ::Concurrent::Synchronization::MutexLockableObject
1622
- def new_condition; end
1623
- end
1624
-
1625
- class Concurrent::Synchronization::MonitorLockableObject < ::Concurrent::Synchronization::AbstractLockableObject
1626
- include(::Concurrent::Synchronization::ConditionSignalling)
1627
-
1628
- def initialize(*defaults); end
1629
-
1630
-
1631
- protected
1632
-
1633
- def ns_wait(timeout = T.unsafe(nil)); end
1634
- def synchronize; end
1635
-
1636
- class << self
1637
- def new(*args, &block); end
1638
- end
1639
- end
1640
-
1641
- module Concurrent::Synchronization::MriAttrVolatile
1642
- mixes_in_class_methods(::Concurrent::Synchronization::MriAttrVolatile::ClassMethods)
1643
-
1644
- def full_memory_barrier; end
1645
-
1646
- class << self
1647
- def included(base); end
1648
- end
1649
- end
1650
-
1651
- module Concurrent::Synchronization::MriAttrVolatile::ClassMethods
1652
- def attr_volatile(*names); end
1653
- end
1654
-
1655
- class Concurrent::Synchronization::MriObject < ::Concurrent::Synchronization::AbstractObject
1656
- include(::Concurrent::Synchronization::MriAttrVolatile)
1657
- extend(::Concurrent::Synchronization::MriAttrVolatile::ClassMethods)
1658
-
1659
- def initialize; end
1660
- end
1661
-
1662
- class Concurrent::Synchronization::MutexLockableObject < ::Concurrent::Synchronization::AbstractLockableObject
1663
- include(::Concurrent::Synchronization::ConditionSignalling)
1664
-
1665
- def initialize(*defaults); end
1666
-
1667
-
1668
- protected
1669
-
1670
- def ns_wait(timeout = T.unsafe(nil)); end
1671
- def synchronize; end
1672
-
1673
- class << self
1674
- def new(*args, &block); end
1675
- end
1676
- end
1677
-
1678
- class Concurrent::Synchronization::Object < ::Concurrent::Synchronization::MriObject
1679
- def initialize; end
1680
-
1681
-
1682
- private
1683
-
1684
- def __initialize_atomic_fields__; end
1685
-
1686
- class << self
1687
- def atomic_attribute?(name); end
1688
- def atomic_attributes(inherited = T.unsafe(nil)); end
1689
- def attr_atomic(*names); end
1690
- def ensure_safe_initialization_when_final_fields_are_present; end
1691
- def safe_initialization!; end
1692
- def safe_initialization?; end
1693
-
1694
- private
1695
-
1696
- def define_initialize_atomic_fields; end
1697
- end
1698
- end
1699
-
1700
- module Concurrent::Synchronization::RbxAttrVolatile
1701
- mixes_in_class_methods(::Concurrent::Synchronization::RbxAttrVolatile::ClassMethods)
1702
-
1703
- def full_memory_barrier; end
1704
-
1705
- class << self
1706
- def included(base); end
1707
- end
1708
- end
1709
-
1710
- module Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
1711
- def attr_volatile(*names); end
1712
- end
1713
-
1714
- class Concurrent::Synchronization::RbxLockableObject < ::Concurrent::Synchronization::AbstractLockableObject
1715
- def initialize(*defaults); end
1716
-
1717
-
1718
- protected
1719
-
1720
- def ns_broadcast; end
1721
- def ns_signal; end
1722
- def ns_wait(timeout = T.unsafe(nil)); end
1723
- def synchronize(&block); end
1724
-
1725
- class << self
1726
- def new(*args, &block); end
1727
- end
1728
- end
1729
-
1730
- class Concurrent::Synchronization::RbxObject < ::Concurrent::Synchronization::AbstractObject
1731
- include(::Concurrent::Synchronization::RbxAttrVolatile)
1732
- extend(::Concurrent::Synchronization::RbxAttrVolatile::ClassMethods)
1733
-
1734
- def initialize; end
1735
- end
1736
-
1737
- module Concurrent::Synchronization::TruffleRubyAttrVolatile
1738
- mixes_in_class_methods(::Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods)
1739
-
1740
- def full_memory_barrier; end
1741
-
1742
- class << self
1743
- def included(base); end
1744
- end
1745
- end
1746
-
1747
- module Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
1748
- def attr_volatile(*names); end
1749
- end
1750
-
1751
- class Concurrent::Synchronization::TruffleRubyObject < ::Concurrent::Synchronization::AbstractObject
1752
- include(::Concurrent::Synchronization::TruffleRubyAttrVolatile)
1753
- extend(::Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods)
1754
-
1755
- def initialize; end
1756
- end
1757
-
1758
- Concurrent::Synchronization::Volatile = Concurrent::Synchronization::MriAttrVolatile
1759
-
1760
- class Concurrent::SynchronizedDelegator < ::SimpleDelegator
1761
- def initialize(obj); end
1762
-
1763
- def method_missing(method, *args, &block); end
1764
- def setup; end
1765
- def teardown; end
1766
- end
1767
-
1768
- class Concurrent::TVar < ::Concurrent::Synchronization::Object
1769
- def initialize(value); end
1770
-
1771
- def unsafe_increment_version; end
1772
- def unsafe_lock; end
1773
- def unsafe_value; end
1774
- def unsafe_value=(value); end
1775
- def unsafe_version; end
1776
- def value; end
1777
- def value=(value); end
1778
-
1779
- class << self
1780
- def new(*args, &block); end
1781
- end
1782
- end
1783
-
1784
- class Concurrent::ThreadLocalVar < ::Concurrent::RubyThreadLocalVar
1785
- end
1786
-
1787
- class Concurrent::ThreadPoolExecutor < ::Concurrent::RubyThreadPoolExecutor
1788
- end
1789
-
1790
- module Concurrent::ThreadSafe
1791
- end
1792
-
1793
- module Concurrent::ThreadSafe::Util
1794
- end
1795
-
1796
- Concurrent::ThreadSafe::Util::CPU_COUNT = T.let(T.unsafe(nil), Integer)
1797
-
1798
- Concurrent::ThreadSafe::Util::FIXNUM_BIT_SIZE = T.let(T.unsafe(nil), Integer)
1799
-
1800
- Concurrent::ThreadSafe::Util::MAX_INT = T.let(T.unsafe(nil), Integer)
1801
-
1802
- class Concurrent::TimeoutError < ::Concurrent::Error
1803
- end
1804
-
1805
- class Concurrent::TimerSet < ::Concurrent::RubyExecutorService
1806
- def initialize(opts = T.unsafe(nil)); end
1807
-
1808
- def kill; end
1809
- def post(delay, *args, &task); end
1810
-
1811
- private
1812
-
1813
- def ns_initialize(opts); end
1814
- def ns_post_task(task); end
1815
- def ns_reset_if_forked; end
1816
- def ns_shutdown_execution; end
1817
- def post_task(task); end
1818
- def process_tasks; end
1819
- def remove_task(task); end
1820
- end
1821
-
1822
- class Concurrent::TimerTask < ::Concurrent::RubyExecutorService
1823
- include(::Concurrent::Concern::Dereferenceable)
1824
- include(::Concurrent::Concern::Observable)
1825
-
1826
- def initialize(opts = T.unsafe(nil), &task); end
1827
-
1828
- def execute; end
1829
- def execution_interval; end
1830
- def execution_interval=(value); end
1831
- def running?; end
1832
- def timeout_interval; end
1833
- def timeout_interval=(value); end
1834
-
1835
- private
1836
-
1837
- def execute_task(completion); end
1838
- def ns_initialize(opts, &task); end
1839
- def ns_kill_execution; end
1840
- def ns_shutdown_execution; end
1841
- def schedule_next_task(interval = T.unsafe(nil)); end
1842
- def timeout_task(completion); end
1843
-
1844
- class << self
1845
- def execute(opts = T.unsafe(nil), &task); end
1846
- end
1847
- end
1848
-
1849
- Concurrent::TimerTask::EXECUTION_INTERVAL = T.let(T.unsafe(nil), Integer)
1850
-
1851
- Concurrent::TimerTask::TIMEOUT_INTERVAL = T.let(T.unsafe(nil), Integer)
1852
-
1853
- class Concurrent::Transaction
1854
- def initialize; end
1855
-
1856
- def abort; end
1857
- def commit; end
1858
- def read(tvar); end
1859
- def unlock; end
1860
- def valid?; end
1861
- def write(tvar, value); end
1862
-
1863
- class << self
1864
- def current; end
1865
- def current=(transaction); end
1866
- end
1867
- end
1868
-
1869
- Concurrent::Transaction::ABORTED = T.let(T.unsafe(nil), Object)
1870
-
1871
- class Concurrent::Transaction::AbortError < ::StandardError
1872
- end
1873
-
1874
- class Concurrent::Transaction::LeaveError < ::StandardError
1875
- end
1876
-
1877
- class Concurrent::Transaction::ReadLogEntry < ::Struct
1878
- def tvar; end
1879
- def tvar=(_); end
1880
- def version; end
1881
- def version=(_); end
1882
-
1883
- class << self
1884
- def [](*_arg0); end
1885
- def inspect; end
1886
- def members; end
1887
- def new(*_arg0); end
1888
- end
1889
- end
1890
-
1891
- class Concurrent::Tuple
1892
- include(::Enumerable)
1893
-
1894
- def initialize(size); end
1895
-
1896
- def cas(i, old_value, new_value); end
1897
- def compare_and_set(i, old_value, new_value); end
1898
- def each; end
1899
- def get(i); end
1900
- def set(i, value); end
1901
- def size; end
1902
- def volatile_get(i); end
1903
- def volatile_set(i, value); end
1904
- end
1905
-
1906
- module Concurrent::Utility
1907
- end
1908
-
1909
- module Concurrent::Utility::EngineDetector
1910
- def on_cruby?; end
1911
- def on_jruby?; end
1912
- def on_jruby_9000?; end
1913
- def on_linux?; end
1914
- def on_osx?; end
1915
- def on_rbx?; end
1916
- def on_truffleruby?; end
1917
- def on_windows?; end
1918
- def ruby_engine; end
1919
- def ruby_version(version = T.unsafe(nil), comparison, major, minor, patch); end
1920
- end
1921
-
1922
- module Concurrent::Utility::NativeExtensionLoader
1923
- def allow_c_extensions?; end
1924
- def c_extensions_loaded?; end
1925
- def java_extensions_loaded?; end
1926
- def load_native_extensions; end
1927
-
1928
- private
1929
-
1930
- def load_error_path(error); end
1931
- def set_c_extensions_loaded; end
1932
- def set_java_extensions_loaded; end
1933
- def try_load_c_extension(path); end
1934
- end
1935
-
1936
- module Concurrent::Utility::NativeInteger
1937
- extend(::Concurrent::Utility::NativeInteger)
1938
-
1939
- def ensure_integer(value); end
1940
- def ensure_integer_and_bounds(value); end
1941
- def ensure_lower_bound(value); end
1942
- def ensure_positive(value); end
1943
- def ensure_positive_and_no_zero(value); end
1944
- def ensure_upper_bound(value); end
1945
- end
1946
-
1947
- Concurrent::Utility::NativeInteger::MAX_VALUE = T.let(T.unsafe(nil), Integer)
1948
-
1949
- Concurrent::Utility::NativeInteger::MIN_VALUE = T.let(T.unsafe(nil), Integer)
1950
-
1951
- class Concurrent::Utility::ProcessorCounter
1952
- def initialize; end
1953
-
1954
- def physical_processor_count; end
1955
- def processor_count; end
1956
-
1957
- private
1958
-
1959
- def compute_physical_processor_count; end
1960
- def compute_processor_count; end
1961
- end
1962
-
1963
- Concurrent::VERSION = T.let(T.unsafe(nil), String)
1964
-
1965
- Concurrent::Promises::InternalStates::PENDING = T.let(T.unsafe(nil), T.untyped)
1966
-
1967
- Concurrent::Promises::InternalStates::RESERVED = T.let(T.unsafe(nil), T.untyped)
1968
-
1969
- Concurrent::Promises::InternalStates::RESOLVED = T.let(T.unsafe(nil), T.untyped)