dry-monads-sorbet 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +14 -22
- data/.gitignore +3 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -6
- data/bin/tapioca +29 -0
- data/dry-monads-sorbet.gemspec +3 -2
- data/lib/bundled_rbi/dry-monads.rbi +3 -3
- data/lib/dry/monads/sorbet/version.rb +1 -1
- data/nix/sources.json +14 -0
- data/nix/sources.nix +174 -0
- data/run_ci.sh +7 -0
- data/shell.nix +20 -0
- data/sorbet/config +6 -0
- data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +28 -22
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +1568 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +915 -0
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +8 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
- data/sorbet/rbi/gems/dry-core@0.7.1.rbi +92 -0
- data/sorbet/rbi/gems/dry-equalizer@0.3.0.rbi +28 -0
- data/sorbet/rbi/gems/dry-monads@1.4.0.rbi +697 -0
- data/sorbet/rbi/gems/ffaker@2.20.0.rbi +3171 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
- data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
- data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1189 -0
- data/sorbet/rbi/gems/pry-byebug@3.8.0.rbi +458 -0
- data/sorbet/rbi/gems/{pry.rbi → pry@0.14.1.rbi} +2264 -1727
- data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
- data/sorbet/rbi/gems/{rake.rbi → rake@13.0.6.rbi} +578 -431
- data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
- data/sorbet/rbi/gems/rb-readline@0.5.5.rbi +884 -0
- data/sorbet/rbi/gems/rbi@0.0.6.rbi +1405 -0
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
- data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +564 -497
- data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.10.1.rbi} +2345 -1766
- data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.10.1.rbi} +1149 -698
- data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.10.2.rbi} +1299 -936
- data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
- data/sorbet/rbi/gems/rubocop-ast@1.12.0.rbi +1938 -0
- data/sorbet/rbi/gems/rubocop-rspec@2.5.0.rbi +1786 -0
- data/sorbet/rbi/gems/rubocop@1.22.1.rbi +13252 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.1.5.rbi +1241 -0
- data/sorbet/rbi/gems/stackprof@0.2.17.rbi +98 -0
- data/sorbet/rbi/gems/tapioca@0.5.2.rbi +949 -0
- data/sorbet/rbi/gems/thor@1.1.0.rbi +839 -0
- data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
- data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +65 -68
- data/.ruby-version +0 -1
- data/sorbet/rbi/gems/activesupport.rbi +0 -1722
- data/sorbet/rbi/gems/byebug.rbi +0 -1041
- data/sorbet/rbi/gems/coderay.rbi +0 -285
- data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1586
- data/sorbet/rbi/gems/docile.rbi +0 -32
- data/sorbet/rbi/gems/dry-core.rbi +0 -38
- data/sorbet/rbi/gems/dry-equalizer.rbi +0 -26
- data/sorbet/rbi/gems/dry-monads.rbi +0 -510
- data/sorbet/rbi/gems/em-websocket.rbi +0 -225
- data/sorbet/rbi/gems/eventmachine.rbi +0 -489
- data/sorbet/rbi/gems/ffaker.rbi +0 -60
- data/sorbet/rbi/gems/guard.rbi +0 -397
- data/sorbet/rbi/gems/http_parser.rb.rbi +0 -37
- data/sorbet/rbi/gems/i18n.rbi +0 -133
- data/sorbet/rbi/gems/kwalify.rbi +0 -340
- data/sorbet/rbi/gems/listen.rbi +0 -324
- data/sorbet/rbi/gems/lumberjack.rbi +0 -300
- data/sorbet/rbi/gems/method_source.rbi +0 -64
- data/sorbet/rbi/gems/multi_json.rbi +0 -62
- data/sorbet/rbi/gems/nenv.rbi +0 -60
- data/sorbet/rbi/gems/notiffany.rbi +0 -215
- data/sorbet/rbi/gems/parallel.rbi +0 -82
- data/sorbet/rbi/gems/parser.rbi +0 -1846
- data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
- data/sorbet/rbi/gems/rb-fsevent.rbi +0 -31
- data/sorbet/rbi/gems/rb-readline.rbi +0 -767
- data/sorbet/rbi/gems/reek.rbi +0 -1027
- data/sorbet/rbi/gems/regexp_parser.rbi +0 -913
- data/sorbet/rbi/gems/rspec-support.rbi +0 -280
- data/sorbet/rbi/gems/rspec.rbi +0 -15
- data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1053
- data/sorbet/rbi/gems/rubocop-rspec.rbi +0 -937
- data/sorbet/rbi/gems/rubocop.rbi +0 -6841
- data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -305
- data/sorbet/rbi/gems/shellany.rbi +0 -29
- data/sorbet/rbi/gems/shoulda-matchers.rbi +0 -1848
- data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
- data/sorbet/rbi/gems/simplecov.rbi +0 -361
- data/sorbet/rbi/gems/sqlite3.rbi +0 -354
- data/sorbet/rbi/gems/stackprof.rbi +0 -52
- data/sorbet/rbi/gems/thor.rbi +0 -32
- data/sorbet/rbi/gems/thread_safe.rbi +0 -82
- data/sorbet/rbi/gems/timecop.rbi +0 -98
- data/sorbet/rbi/gems/tzinfo.rbi +0 -406
- data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
- data/sorbet/rbi/hidden-definitions/errors.txt +0 -7267
- data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -14661
- data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +0 -23
- data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -1431
- data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -108
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
- data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
- data/sorbet/rbi/sorbet-typed/lib/rubocop-rspec/~>1.39/rubocop-rspec.rbi +0 -398
- data/sorbet/rbi/todo.rbi +0 -8
@@ -0,0 +1,915 @@
|
|
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 gem concurrent-ruby`.
|
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
|
+
private
|
15
|
+
|
16
|
+
def monotonic_time; end
|
17
|
+
|
18
|
+
class << self
|
19
|
+
def create_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
|
20
|
+
def create_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
|
21
|
+
def disable_at_exit_handlers!; end
|
22
|
+
def executor(executor_identifier); end
|
23
|
+
def global_fast_executor; end
|
24
|
+
def global_immediate_executor; end
|
25
|
+
def global_io_executor; end
|
26
|
+
def global_logger; end
|
27
|
+
def global_logger=(value); end
|
28
|
+
def global_timer_set; end
|
29
|
+
def monotonic_time; end
|
30
|
+
def new_fast_executor(opts = T.unsafe(nil)); end
|
31
|
+
def new_io_executor(opts = T.unsafe(nil)); end
|
32
|
+
def physical_processor_count; end
|
33
|
+
def processor_count; end
|
34
|
+
def processor_counter; end
|
35
|
+
def use_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
|
36
|
+
def use_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
class Concurrent::AbstractExecutorService < ::Concurrent::Synchronization::LockableObject
|
41
|
+
include ::Logger::Severity
|
42
|
+
include ::Concurrent::Concern::Logging
|
43
|
+
include ::Concurrent::ExecutorService
|
44
|
+
include ::Concurrent::Concern::Deprecation
|
45
|
+
|
46
|
+
def initialize(opts = T.unsafe(nil), &block); end
|
47
|
+
|
48
|
+
def auto_terminate=(value); end
|
49
|
+
def auto_terminate?; end
|
50
|
+
def fallback_policy; end
|
51
|
+
def kill; end
|
52
|
+
def name; end
|
53
|
+
def running?; end
|
54
|
+
def shutdown; end
|
55
|
+
def shutdown?; end
|
56
|
+
def shuttingdown?; end
|
57
|
+
def to_s; end
|
58
|
+
def wait_for_termination(timeout = T.unsafe(nil)); end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
def handle_fallback(*args); end
|
63
|
+
def ns_auto_terminate?; end
|
64
|
+
def ns_execute(*args, &task); end
|
65
|
+
def ns_kill_execution; end
|
66
|
+
def ns_shutdown_execution; end
|
67
|
+
end
|
68
|
+
|
69
|
+
Concurrent::AbstractExecutorService::FALLBACK_POLICIES = T.let(T.unsafe(nil), Array)
|
70
|
+
|
71
|
+
module Concurrent::AtomicDirectUpdate
|
72
|
+
def try_update; end
|
73
|
+
def try_update!; end
|
74
|
+
def update; end
|
75
|
+
end
|
76
|
+
|
77
|
+
module Concurrent::AtomicNumericCompareAndSetWrapper
|
78
|
+
def compare_and_set(old_value, new_value); end
|
79
|
+
end
|
80
|
+
|
81
|
+
class Concurrent::AtomicReference < ::Concurrent::MutexAtomicReference
|
82
|
+
def inspect; end
|
83
|
+
def to_s; end
|
84
|
+
end
|
85
|
+
|
86
|
+
Concurrent::AtomicReferenceImplementation = Concurrent::MutexAtomicReference
|
87
|
+
|
88
|
+
class Concurrent::CachedThreadPool < ::Concurrent::ThreadPoolExecutor
|
89
|
+
def initialize(opts = T.unsafe(nil)); end
|
90
|
+
|
91
|
+
private
|
92
|
+
|
93
|
+
def ns_initialize(opts); end
|
94
|
+
end
|
95
|
+
|
96
|
+
class Concurrent::CancelledOperationError < ::Concurrent::Error; end
|
97
|
+
module Concurrent::Collection; end
|
98
|
+
|
99
|
+
class Concurrent::Collection::CopyOnNotifyObserverSet < ::Concurrent::Synchronization::LockableObject
|
100
|
+
def initialize; end
|
101
|
+
|
102
|
+
def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
|
103
|
+
def count_observers; end
|
104
|
+
def delete_observer(observer); end
|
105
|
+
def delete_observers; end
|
106
|
+
def notify_and_delete_observers(*args, &block); end
|
107
|
+
def notify_observers(*args, &block); end
|
108
|
+
|
109
|
+
protected
|
110
|
+
|
111
|
+
def ns_initialize; end
|
112
|
+
|
113
|
+
private
|
114
|
+
|
115
|
+
def duplicate_and_clear_observers; end
|
116
|
+
def duplicate_observers; end
|
117
|
+
def notify_to(observers, *args); end
|
118
|
+
end
|
119
|
+
|
120
|
+
class Concurrent::Collection::CopyOnWriteObserverSet < ::Concurrent::Synchronization::LockableObject
|
121
|
+
def initialize; end
|
122
|
+
|
123
|
+
def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
|
124
|
+
def count_observers; end
|
125
|
+
def delete_observer(observer); end
|
126
|
+
def delete_observers; end
|
127
|
+
def notify_and_delete_observers(*args, &block); end
|
128
|
+
def notify_observers(*args, &block); end
|
129
|
+
|
130
|
+
protected
|
131
|
+
|
132
|
+
def ns_initialize; end
|
133
|
+
|
134
|
+
private
|
135
|
+
|
136
|
+
def clear_observers_and_return_old; end
|
137
|
+
def notify_to(observers, *args); end
|
138
|
+
def observers; end
|
139
|
+
def observers=(new_set); end
|
140
|
+
end
|
141
|
+
|
142
|
+
Concurrent::Collection::MapImplementation = Concurrent::Collection::MriMapBackend
|
143
|
+
|
144
|
+
class Concurrent::Collection::MriMapBackend < ::Concurrent::Collection::NonConcurrentMapBackend
|
145
|
+
def initialize(options = T.unsafe(nil)); end
|
146
|
+
|
147
|
+
def []=(key, value); end
|
148
|
+
def clear; end
|
149
|
+
def compute(key); end
|
150
|
+
def compute_if_absent(key); end
|
151
|
+
def compute_if_present(key); end
|
152
|
+
def delete(key); end
|
153
|
+
def delete_pair(key, value); end
|
154
|
+
def get_and_set(key, value); end
|
155
|
+
def merge_pair(key, value); end
|
156
|
+
def replace_if_exists(key, new_value); end
|
157
|
+
def replace_pair(key, old_value, new_value); end
|
158
|
+
end
|
159
|
+
|
160
|
+
class Concurrent::Collection::NonConcurrentMapBackend
|
161
|
+
def initialize(options = T.unsafe(nil)); end
|
162
|
+
|
163
|
+
def [](key); end
|
164
|
+
def []=(key, value); end
|
165
|
+
def clear; end
|
166
|
+
def compute(key); end
|
167
|
+
def compute_if_absent(key); end
|
168
|
+
def compute_if_present(key); end
|
169
|
+
def delete(key); end
|
170
|
+
def delete_pair(key, value); end
|
171
|
+
def each_pair; end
|
172
|
+
def get_and_set(key, value); end
|
173
|
+
def get_or_default(key, default_value); end
|
174
|
+
def key?(key); end
|
175
|
+
def merge_pair(key, value); end
|
176
|
+
def replace_if_exists(key, new_value); end
|
177
|
+
def replace_pair(key, old_value, new_value); end
|
178
|
+
def size; end
|
179
|
+
|
180
|
+
private
|
181
|
+
|
182
|
+
def _get(key); end
|
183
|
+
def _set(key, value); end
|
184
|
+
def dupped_backend; end
|
185
|
+
def initialize_copy(other); end
|
186
|
+
def pair?(key, expected_value); end
|
187
|
+
def store_computed_value(key, new_value); end
|
188
|
+
end
|
189
|
+
|
190
|
+
class Concurrent::Collection::NonConcurrentPriorityQueue < ::Concurrent::Collection::RubyNonConcurrentPriorityQueue
|
191
|
+
def <<(item); end
|
192
|
+
def deq; end
|
193
|
+
def enq(item); end
|
194
|
+
def has_priority?(item); end
|
195
|
+
def shift; end
|
196
|
+
def size; end
|
197
|
+
end
|
198
|
+
|
199
|
+
Concurrent::Collection::NonConcurrentPriorityQueueImplementation = Concurrent::Collection::RubyNonConcurrentPriorityQueue
|
200
|
+
|
201
|
+
class Concurrent::Collection::RubyNonConcurrentPriorityQueue
|
202
|
+
def initialize(opts = T.unsafe(nil)); end
|
203
|
+
|
204
|
+
def <<(item); end
|
205
|
+
def clear; end
|
206
|
+
def delete(item); end
|
207
|
+
def deq; end
|
208
|
+
def empty?; end
|
209
|
+
def enq(item); end
|
210
|
+
def has_priority?(item); end
|
211
|
+
def include?(item); end
|
212
|
+
def length; end
|
213
|
+
def peek; end
|
214
|
+
def pop; end
|
215
|
+
def push(item); end
|
216
|
+
def shift; end
|
217
|
+
def size; end
|
218
|
+
|
219
|
+
private
|
220
|
+
|
221
|
+
def ordered?(x, y); end
|
222
|
+
def sink(k); end
|
223
|
+
def swap(x, y); end
|
224
|
+
def swim(k); end
|
225
|
+
|
226
|
+
class << self
|
227
|
+
def from_list(list, opts = T.unsafe(nil)); end
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
module Concurrent::Concern; end
|
232
|
+
|
233
|
+
module Concurrent::Concern::Deprecation
|
234
|
+
include ::Logger::Severity
|
235
|
+
include ::Concurrent::Concern::Logging
|
236
|
+
extend ::Logger::Severity
|
237
|
+
extend ::Concurrent::Concern::Logging
|
238
|
+
extend ::Concurrent::Concern::Deprecation
|
239
|
+
|
240
|
+
def deprecated(message, strip = T.unsafe(nil)); end
|
241
|
+
def deprecated_method(old_name, new_name); end
|
242
|
+
end
|
243
|
+
|
244
|
+
module Concurrent::Concern::Dereferenceable
|
245
|
+
def deref; end
|
246
|
+
def value; end
|
247
|
+
|
248
|
+
protected
|
249
|
+
|
250
|
+
def apply_deref_options(value); end
|
251
|
+
def ns_set_deref_options(opts); end
|
252
|
+
def set_deref_options(opts = T.unsafe(nil)); end
|
253
|
+
def value=(value); end
|
254
|
+
end
|
255
|
+
|
256
|
+
module Concurrent::Concern::Logging
|
257
|
+
include ::Logger::Severity
|
258
|
+
|
259
|
+
def log(level, progname, message = T.unsafe(nil), &block); end
|
260
|
+
end
|
261
|
+
|
262
|
+
module Concurrent::Concern::Obligation
|
263
|
+
include ::Concurrent::Concern::Dereferenceable
|
264
|
+
|
265
|
+
def complete?; end
|
266
|
+
def exception(*args); end
|
267
|
+
def fulfilled?; end
|
268
|
+
def incomplete?; end
|
269
|
+
def no_error!(timeout = T.unsafe(nil)); end
|
270
|
+
def pending?; end
|
271
|
+
def realized?; end
|
272
|
+
def reason; end
|
273
|
+
def rejected?; end
|
274
|
+
def state; end
|
275
|
+
def unscheduled?; end
|
276
|
+
def value(timeout = T.unsafe(nil)); end
|
277
|
+
def value!(timeout = T.unsafe(nil)); end
|
278
|
+
def wait(timeout = T.unsafe(nil)); end
|
279
|
+
def wait!(timeout = T.unsafe(nil)); end
|
280
|
+
|
281
|
+
protected
|
282
|
+
|
283
|
+
def compare_and_set_state(next_state, *expected_current); end
|
284
|
+
def event; end
|
285
|
+
def get_arguments_from(opts = T.unsafe(nil)); end
|
286
|
+
def if_state(*expected_states); end
|
287
|
+
def init_obligation; end
|
288
|
+
def ns_check_state?(expected); end
|
289
|
+
def ns_set_state(value); end
|
290
|
+
def set_state(success, value, reason); end
|
291
|
+
def state=(value); end
|
292
|
+
end
|
293
|
+
|
294
|
+
module Concurrent::Concern::Observable
|
295
|
+
def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
|
296
|
+
def count_observers; end
|
297
|
+
def delete_observer(observer); end
|
298
|
+
def delete_observers; end
|
299
|
+
def with_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
|
300
|
+
|
301
|
+
protected
|
302
|
+
|
303
|
+
def observers; end
|
304
|
+
def observers=(_arg0); end
|
305
|
+
end
|
306
|
+
|
307
|
+
class Concurrent::ConcurrentUpdateError < ::ThreadError; end
|
308
|
+
Concurrent::ConcurrentUpdateError::CONC_UP_ERR_BACKTRACE = T.let(T.unsafe(nil), Array)
|
309
|
+
class Concurrent::ConfigurationError < ::Concurrent::Error; end
|
310
|
+
|
311
|
+
class Concurrent::Delay < ::Concurrent::Synchronization::LockableObject
|
312
|
+
include ::Concurrent::Concern::Dereferenceable
|
313
|
+
include ::Concurrent::Concern::Obligation
|
314
|
+
|
315
|
+
def initialize(opts = T.unsafe(nil), &block); end
|
316
|
+
|
317
|
+
def reconfigure(&block); end
|
318
|
+
def value(timeout = T.unsafe(nil)); end
|
319
|
+
def value!(timeout = T.unsafe(nil)); end
|
320
|
+
def wait(timeout = T.unsafe(nil)); end
|
321
|
+
|
322
|
+
protected
|
323
|
+
|
324
|
+
def ns_initialize(opts, &block); end
|
325
|
+
|
326
|
+
private
|
327
|
+
|
328
|
+
def execute_task_once; end
|
329
|
+
end
|
330
|
+
|
331
|
+
class Concurrent::Error < ::StandardError; end
|
332
|
+
|
333
|
+
class Concurrent::Event < ::Concurrent::Synchronization::LockableObject
|
334
|
+
def initialize; end
|
335
|
+
|
336
|
+
def reset; end
|
337
|
+
def set; end
|
338
|
+
def set?; end
|
339
|
+
def try?; end
|
340
|
+
def wait(timeout = T.unsafe(nil)); end
|
341
|
+
|
342
|
+
protected
|
343
|
+
|
344
|
+
def ns_initialize; end
|
345
|
+
def ns_set; end
|
346
|
+
end
|
347
|
+
|
348
|
+
module Concurrent::ExecutorService
|
349
|
+
include ::Logger::Severity
|
350
|
+
include ::Concurrent::Concern::Logging
|
351
|
+
|
352
|
+
def <<(task); end
|
353
|
+
def can_overflow?; end
|
354
|
+
def post(*args, &task); end
|
355
|
+
def serialized?; end
|
356
|
+
end
|
357
|
+
|
358
|
+
Concurrent::GLOBAL_FAST_EXECUTOR = T.let(T.unsafe(nil), Concurrent::Delay)
|
359
|
+
Concurrent::GLOBAL_IMMEDIATE_EXECUTOR = T.let(T.unsafe(nil), Concurrent::ImmediateExecutor)
|
360
|
+
Concurrent::GLOBAL_IO_EXECUTOR = T.let(T.unsafe(nil), Concurrent::Delay)
|
361
|
+
Concurrent::GLOBAL_LOGGER = T.let(T.unsafe(nil), Concurrent::AtomicReference)
|
362
|
+
Concurrent::GLOBAL_MONOTONIC_CLOCK = T.let(T.unsafe(nil), T.untyped)
|
363
|
+
Concurrent::GLOBAL_TIMER_SET = T.let(T.unsafe(nil), Concurrent::Delay)
|
364
|
+
|
365
|
+
class Concurrent::IVar < ::Concurrent::Synchronization::LockableObject
|
366
|
+
include ::Concurrent::Concern::Dereferenceable
|
367
|
+
include ::Concurrent::Concern::Obligation
|
368
|
+
include ::Concurrent::Concern::Observable
|
369
|
+
|
370
|
+
def initialize(value = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
371
|
+
|
372
|
+
def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
|
373
|
+
def fail(reason = T.unsafe(nil)); end
|
374
|
+
def set(value = T.unsafe(nil)); end
|
375
|
+
def try_set(value = T.unsafe(nil), &block); end
|
376
|
+
|
377
|
+
protected
|
378
|
+
|
379
|
+
def check_for_block_or_value!(block_given, value); end
|
380
|
+
def complete(success, value, reason); end
|
381
|
+
def complete_without_notification(success, value, reason); end
|
382
|
+
def notify_observers(value, reason); end
|
383
|
+
def ns_complete_without_notification(success, value, reason); end
|
384
|
+
def ns_initialize(value, opts); end
|
385
|
+
def safe_execute(task, args = T.unsafe(nil)); end
|
386
|
+
end
|
387
|
+
|
388
|
+
class Concurrent::IllegalOperationError < ::Concurrent::Error; end
|
389
|
+
|
390
|
+
class Concurrent::ImmediateExecutor < ::Concurrent::AbstractExecutorService
|
391
|
+
include ::Concurrent::SerialExecutorService
|
392
|
+
|
393
|
+
def initialize; end
|
394
|
+
|
395
|
+
def <<(task); end
|
396
|
+
def kill; end
|
397
|
+
def post(*args, &task); end
|
398
|
+
def running?; end
|
399
|
+
def shutdown; end
|
400
|
+
def shutdown?; end
|
401
|
+
def shuttingdown?; end
|
402
|
+
def wait_for_termination(timeout = T.unsafe(nil)); end
|
403
|
+
end
|
404
|
+
|
405
|
+
class Concurrent::ImmutabilityError < ::Concurrent::Error; end
|
406
|
+
class Concurrent::InitializationError < ::Concurrent::Error; end
|
407
|
+
class Concurrent::LifecycleError < ::Concurrent::Error; end
|
408
|
+
|
409
|
+
class Concurrent::Map < ::Concurrent::Collection::MriMapBackend
|
410
|
+
def initialize(options = T.unsafe(nil), &block); end
|
411
|
+
|
412
|
+
def [](key); end
|
413
|
+
def []=(key, value); end
|
414
|
+
def each; end
|
415
|
+
def each_key; end
|
416
|
+
def each_pair; end
|
417
|
+
def each_value; end
|
418
|
+
def empty?; end
|
419
|
+
def fetch(key, default_value = T.unsafe(nil)); end
|
420
|
+
def fetch_or_store(key, default_value = T.unsafe(nil)); end
|
421
|
+
def get(key); end
|
422
|
+
def inspect; end
|
423
|
+
def key(value); end
|
424
|
+
def keys; end
|
425
|
+
def marshal_dump; end
|
426
|
+
def marshal_load(hash); end
|
427
|
+
def put(key, value); end
|
428
|
+
def put_if_absent(key, value); end
|
429
|
+
def value?(value); end
|
430
|
+
def values; end
|
431
|
+
|
432
|
+
private
|
433
|
+
|
434
|
+
def initialize_copy(other); end
|
435
|
+
def populate_from(hash); end
|
436
|
+
def raise_fetch_no_key; end
|
437
|
+
def validate_options_hash!(options); end
|
438
|
+
end
|
439
|
+
|
440
|
+
class Concurrent::MaxRestartFrequencyError < ::Concurrent::Error; end
|
441
|
+
|
442
|
+
class Concurrent::MultipleAssignmentError < ::Concurrent::Error
|
443
|
+
def initialize(message = T.unsafe(nil), inspection_data = T.unsafe(nil)); end
|
444
|
+
|
445
|
+
def inspect; end
|
446
|
+
def inspection_data; end
|
447
|
+
end
|
448
|
+
|
449
|
+
class Concurrent::MultipleErrors < ::Concurrent::Error
|
450
|
+
def initialize(errors, message = T.unsafe(nil)); end
|
451
|
+
|
452
|
+
def errors; end
|
453
|
+
end
|
454
|
+
|
455
|
+
class Concurrent::MutexAtomicReference < ::Concurrent::Synchronization::LockableObject
|
456
|
+
include ::Concurrent::AtomicDirectUpdate
|
457
|
+
include ::Concurrent::AtomicNumericCompareAndSetWrapper
|
458
|
+
|
459
|
+
def initialize(value = T.unsafe(nil)); end
|
460
|
+
|
461
|
+
def _compare_and_set(old_value, new_value); end
|
462
|
+
def compare_and_swap(old_value, new_value); end
|
463
|
+
def get; end
|
464
|
+
def get_and_set(new_value); end
|
465
|
+
def set(new_value); end
|
466
|
+
def swap(new_value); end
|
467
|
+
def value; end
|
468
|
+
def value=(new_value); end
|
469
|
+
|
470
|
+
protected
|
471
|
+
|
472
|
+
def ns_initialize(value); end
|
473
|
+
end
|
474
|
+
|
475
|
+
Concurrent::NULL = T.let(T.unsafe(nil), Object)
|
476
|
+
Concurrent::NULL_LOGGER = T.let(T.unsafe(nil), Proc)
|
477
|
+
|
478
|
+
module Concurrent::Options
|
479
|
+
class << self
|
480
|
+
def executor(executor_identifier); end
|
481
|
+
def executor_from_options(opts = T.unsafe(nil)); end
|
482
|
+
end
|
483
|
+
end
|
484
|
+
|
485
|
+
class Concurrent::Promise < ::Concurrent::IVar
|
486
|
+
def initialize(opts = T.unsafe(nil), &block); end
|
487
|
+
|
488
|
+
def catch(&block); end
|
489
|
+
def execute; end
|
490
|
+
def fail(reason = T.unsafe(nil)); end
|
491
|
+
def flat_map(&block); end
|
492
|
+
def on_error(&block); end
|
493
|
+
def on_success(&block); end
|
494
|
+
def rescue(&block); end
|
495
|
+
def set(value = T.unsafe(nil), &block); end
|
496
|
+
def then(*args, &block); end
|
497
|
+
def zip(*others); end
|
498
|
+
|
499
|
+
protected
|
500
|
+
|
501
|
+
def complete(success, value, reason); end
|
502
|
+
def notify_child(child); end
|
503
|
+
def ns_initialize(value, opts); end
|
504
|
+
def on_fulfill(result); end
|
505
|
+
def on_reject(reason); end
|
506
|
+
def realize(task); end
|
507
|
+
def root?; end
|
508
|
+
def set_pending; end
|
509
|
+
def set_state!(success, value, reason); end
|
510
|
+
def synchronized_set_state!(success, value, reason); end
|
511
|
+
|
512
|
+
class << self
|
513
|
+
def aggregate(method, *promises); end
|
514
|
+
def all?(*promises); end
|
515
|
+
def any?(*promises); end
|
516
|
+
def execute(opts = T.unsafe(nil), &block); end
|
517
|
+
def fulfill(value, opts = T.unsafe(nil)); end
|
518
|
+
def reject(reason, opts = T.unsafe(nil)); end
|
519
|
+
def zip(*promises); end
|
520
|
+
end
|
521
|
+
end
|
522
|
+
|
523
|
+
class Concurrent::PromiseExecutionError < ::StandardError; end
|
524
|
+
class Concurrent::RejectedExecutionError < ::Concurrent::Error; end
|
525
|
+
class Concurrent::ResourceLimitError < ::Concurrent::Error; end
|
526
|
+
|
527
|
+
class Concurrent::RubyExecutorService < ::Concurrent::AbstractExecutorService
|
528
|
+
def initialize(*args, &block); end
|
529
|
+
|
530
|
+
def kill; end
|
531
|
+
def post(*args, &task); end
|
532
|
+
def shutdown; end
|
533
|
+
def wait_for_termination(timeout = T.unsafe(nil)); end
|
534
|
+
|
535
|
+
private
|
536
|
+
|
537
|
+
def ns_running?; end
|
538
|
+
def ns_shutdown?; end
|
539
|
+
def ns_shutdown_execution; end
|
540
|
+
def ns_shuttingdown?; end
|
541
|
+
def stop_event; end
|
542
|
+
def stopped_event; end
|
543
|
+
end
|
544
|
+
|
545
|
+
class Concurrent::RubySingleThreadExecutor < ::Concurrent::RubyThreadPoolExecutor
|
546
|
+
def initialize(opts = T.unsafe(nil)); end
|
547
|
+
end
|
548
|
+
|
549
|
+
class Concurrent::RubyThreadPoolExecutor < ::Concurrent::RubyExecutorService
|
550
|
+
def initialize(opts = T.unsafe(nil)); end
|
551
|
+
|
552
|
+
def can_overflow?; end
|
553
|
+
def completed_task_count; end
|
554
|
+
def idletime; end
|
555
|
+
def largest_length; end
|
556
|
+
def length; end
|
557
|
+
def max_length; end
|
558
|
+
def max_queue; end
|
559
|
+
def min_length; end
|
560
|
+
def queue_length; end
|
561
|
+
def ready_worker(worker); end
|
562
|
+
def remaining_capacity; end
|
563
|
+
def remove_busy_worker(worker); end
|
564
|
+
def scheduled_task_count; end
|
565
|
+
def synchronous; end
|
566
|
+
def worker_died(worker); end
|
567
|
+
def worker_not_old_enough(worker); end
|
568
|
+
def worker_task_completed; end
|
569
|
+
|
570
|
+
private
|
571
|
+
|
572
|
+
def ns_add_busy_worker; end
|
573
|
+
def ns_assign_worker(*args, &task); end
|
574
|
+
def ns_enqueue(*args, &task); end
|
575
|
+
def ns_execute(*args, &task); end
|
576
|
+
def ns_initialize(opts); end
|
577
|
+
def ns_kill_execution; end
|
578
|
+
def ns_limited_queue?; end
|
579
|
+
def ns_prune_pool; end
|
580
|
+
def ns_ready_worker(worker, success = T.unsafe(nil)); end
|
581
|
+
def ns_remove_busy_worker(worker); end
|
582
|
+
def ns_reset_if_forked; end
|
583
|
+
def ns_shutdown_execution; end
|
584
|
+
def ns_worker_died(worker); end
|
585
|
+
def ns_worker_not_old_enough(worker); end
|
586
|
+
end
|
587
|
+
|
588
|
+
Concurrent::RubyThreadPoolExecutor::DEFAULT_MAX_POOL_SIZE = T.let(T.unsafe(nil), Integer)
|
589
|
+
Concurrent::RubyThreadPoolExecutor::DEFAULT_MAX_QUEUE_SIZE = T.let(T.unsafe(nil), Integer)
|
590
|
+
Concurrent::RubyThreadPoolExecutor::DEFAULT_MIN_POOL_SIZE = T.let(T.unsafe(nil), Integer)
|
591
|
+
Concurrent::RubyThreadPoolExecutor::DEFAULT_THREAD_IDLETIMEOUT = T.let(T.unsafe(nil), Integer)
|
592
|
+
|
593
|
+
class Concurrent::RubyThreadPoolExecutor::Worker
|
594
|
+
include ::Logger::Severity
|
595
|
+
include ::Concurrent::Concern::Logging
|
596
|
+
|
597
|
+
def initialize(pool, id); end
|
598
|
+
|
599
|
+
def <<(message); end
|
600
|
+
def kill; end
|
601
|
+
def stop; end
|
602
|
+
|
603
|
+
private
|
604
|
+
|
605
|
+
def create_worker(queue, pool, idletime); end
|
606
|
+
def run_task(pool, task, args); end
|
607
|
+
end
|
608
|
+
|
609
|
+
class Concurrent::SafeTaskExecutor < ::Concurrent::Synchronization::LockableObject
|
610
|
+
def initialize(task, opts = T.unsafe(nil)); end
|
611
|
+
|
612
|
+
def execute(*args); end
|
613
|
+
end
|
614
|
+
|
615
|
+
class Concurrent::ScheduledTask < ::Concurrent::IVar
|
616
|
+
include ::Comparable
|
617
|
+
|
618
|
+
def initialize(delay, opts = T.unsafe(nil), &task); end
|
619
|
+
|
620
|
+
def <=>(other); end
|
621
|
+
def cancel; end
|
622
|
+
def cancelled?; end
|
623
|
+
def execute; end
|
624
|
+
def executor; end
|
625
|
+
def initial_delay; end
|
626
|
+
def process_task; end
|
627
|
+
def processing?; end
|
628
|
+
def reschedule(delay); end
|
629
|
+
def reset; end
|
630
|
+
def schedule_time; end
|
631
|
+
|
632
|
+
protected
|
633
|
+
|
634
|
+
def ns_reschedule(delay); end
|
635
|
+
def ns_schedule(delay); end
|
636
|
+
|
637
|
+
class << self
|
638
|
+
def execute(delay, opts = T.unsafe(nil), &task); end
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
642
|
+
module Concurrent::SerialExecutorService
|
643
|
+
include ::Logger::Severity
|
644
|
+
include ::Concurrent::Concern::Logging
|
645
|
+
include ::Concurrent::ExecutorService
|
646
|
+
|
647
|
+
def serialized?; end
|
648
|
+
end
|
649
|
+
|
650
|
+
class Concurrent::SingleThreadExecutor < ::Concurrent::RubySingleThreadExecutor; end
|
651
|
+
Concurrent::SingleThreadExecutorImplementation = Concurrent::RubySingleThreadExecutor
|
652
|
+
module Concurrent::Synchronization; end
|
653
|
+
|
654
|
+
class Concurrent::Synchronization::AbstractLockableObject < ::Concurrent::Synchronization::Object
|
655
|
+
protected
|
656
|
+
|
657
|
+
def ns_broadcast; end
|
658
|
+
def ns_signal; end
|
659
|
+
def ns_wait(timeout = T.unsafe(nil)); end
|
660
|
+
def ns_wait_until(timeout = T.unsafe(nil), &condition); end
|
661
|
+
def synchronize; end
|
662
|
+
end
|
663
|
+
|
664
|
+
class Concurrent::Synchronization::AbstractObject
|
665
|
+
def initialize; end
|
666
|
+
|
667
|
+
def full_memory_barrier; end
|
668
|
+
|
669
|
+
class << self
|
670
|
+
def attr_volatile(*names); end
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
674
|
+
class Concurrent::Synchronization::Condition < ::Concurrent::Synchronization::LockableObject
|
675
|
+
def initialize(lock); end
|
676
|
+
|
677
|
+
def broadcast; end
|
678
|
+
def ns_broadcast; end
|
679
|
+
def ns_signal; end
|
680
|
+
def ns_wait(timeout = T.unsafe(nil)); end
|
681
|
+
def ns_wait_until(timeout = T.unsafe(nil), &condition); end
|
682
|
+
def signal; end
|
683
|
+
def wait(timeout = T.unsafe(nil)); end
|
684
|
+
def wait_until(timeout = T.unsafe(nil), &condition); end
|
685
|
+
|
686
|
+
class << self
|
687
|
+
def private_new(*args, &block); end
|
688
|
+
end
|
689
|
+
end
|
690
|
+
|
691
|
+
module Concurrent::Synchronization::ConditionSignalling
|
692
|
+
protected
|
693
|
+
|
694
|
+
def ns_broadcast; end
|
695
|
+
def ns_signal; end
|
696
|
+
end
|
697
|
+
|
698
|
+
class Concurrent::Synchronization::Lock < ::Concurrent::Synchronization::LockableObject
|
699
|
+
def broadcast; end
|
700
|
+
def signal; end
|
701
|
+
def wait(timeout = T.unsafe(nil)); end
|
702
|
+
def wait_until(timeout = T.unsafe(nil), &condition); end
|
703
|
+
end
|
704
|
+
|
705
|
+
class Concurrent::Synchronization::LockableObject < ::Concurrent::Synchronization::MutexLockableObject
|
706
|
+
def new_condition; end
|
707
|
+
end
|
708
|
+
|
709
|
+
Concurrent::Synchronization::LockableObjectImplementation = Concurrent::Synchronization::MutexLockableObject
|
710
|
+
|
711
|
+
class Concurrent::Synchronization::MonitorLockableObject < ::Concurrent::Synchronization::AbstractLockableObject
|
712
|
+
include ::Concurrent::Synchronization::ConditionSignalling
|
713
|
+
|
714
|
+
def initialize(*defaults); end
|
715
|
+
|
716
|
+
protected
|
717
|
+
|
718
|
+
def ns_wait(timeout = T.unsafe(nil)); end
|
719
|
+
def synchronize; end
|
720
|
+
|
721
|
+
private
|
722
|
+
|
723
|
+
def initialize_copy(other); end
|
724
|
+
|
725
|
+
class << self
|
726
|
+
def new(*args, &block); end
|
727
|
+
end
|
728
|
+
end
|
729
|
+
|
730
|
+
module Concurrent::Synchronization::MriAttrVolatile
|
731
|
+
mixes_in_class_methods ::Concurrent::Synchronization::MriAttrVolatile::ClassMethods
|
732
|
+
|
733
|
+
def full_memory_barrier; end
|
734
|
+
|
735
|
+
class << self
|
736
|
+
def included(base); end
|
737
|
+
end
|
738
|
+
end
|
739
|
+
|
740
|
+
module Concurrent::Synchronization::MriAttrVolatile::ClassMethods
|
741
|
+
def attr_volatile(*names); end
|
742
|
+
end
|
743
|
+
|
744
|
+
class Concurrent::Synchronization::MriObject < ::Concurrent::Synchronization::AbstractObject
|
745
|
+
include ::Concurrent::Synchronization::MriAttrVolatile
|
746
|
+
extend ::Concurrent::Synchronization::MriAttrVolatile::ClassMethods
|
747
|
+
|
748
|
+
def initialize; end
|
749
|
+
end
|
750
|
+
|
751
|
+
class Concurrent::Synchronization::MutexLockableObject < ::Concurrent::Synchronization::AbstractLockableObject
|
752
|
+
include ::Concurrent::Synchronization::ConditionSignalling
|
753
|
+
|
754
|
+
def initialize(*defaults); end
|
755
|
+
|
756
|
+
protected
|
757
|
+
|
758
|
+
def ns_wait(timeout = T.unsafe(nil)); end
|
759
|
+
def synchronize; end
|
760
|
+
|
761
|
+
private
|
762
|
+
|
763
|
+
def initialize_copy(other); end
|
764
|
+
|
765
|
+
class << self
|
766
|
+
def new(*args, &block); end
|
767
|
+
end
|
768
|
+
end
|
769
|
+
|
770
|
+
class Concurrent::Synchronization::Object < ::Concurrent::Synchronization::MriObject
|
771
|
+
def initialize; end
|
772
|
+
|
773
|
+
private
|
774
|
+
|
775
|
+
def __initialize_atomic_fields__; end
|
776
|
+
|
777
|
+
class << self
|
778
|
+
def atomic_attribute?(name); end
|
779
|
+
def atomic_attributes(inherited = T.unsafe(nil)); end
|
780
|
+
def attr_atomic(*names); end
|
781
|
+
def ensure_safe_initialization_when_final_fields_are_present; end
|
782
|
+
def safe_initialization!; end
|
783
|
+
def safe_initialization?; end
|
784
|
+
|
785
|
+
private
|
786
|
+
|
787
|
+
def define_initialize_atomic_fields; end
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
791
|
+
Concurrent::Synchronization::ObjectImplementation = Concurrent::Synchronization::MriObject
|
792
|
+
|
793
|
+
module Concurrent::Synchronization::RbxAttrVolatile
|
794
|
+
mixes_in_class_methods ::Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
|
795
|
+
|
796
|
+
def full_memory_barrier; end
|
797
|
+
|
798
|
+
class << self
|
799
|
+
def included(base); end
|
800
|
+
end
|
801
|
+
end
|
802
|
+
|
803
|
+
module Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
|
804
|
+
def attr_volatile(*names); end
|
805
|
+
end
|
806
|
+
|
807
|
+
class Concurrent::Synchronization::RbxLockableObject < ::Concurrent::Synchronization::AbstractLockableObject
|
808
|
+
def initialize(*defaults); end
|
809
|
+
|
810
|
+
protected
|
811
|
+
|
812
|
+
def ns_broadcast; end
|
813
|
+
def ns_signal; end
|
814
|
+
def ns_wait(timeout = T.unsafe(nil)); end
|
815
|
+
def synchronize(&block); end
|
816
|
+
|
817
|
+
private
|
818
|
+
|
819
|
+
def initialize_copy(other); end
|
820
|
+
|
821
|
+
class << self
|
822
|
+
def new(*args, &block); end
|
823
|
+
end
|
824
|
+
end
|
825
|
+
|
826
|
+
class Concurrent::Synchronization::RbxObject < ::Concurrent::Synchronization::AbstractObject
|
827
|
+
include ::Concurrent::Synchronization::RbxAttrVolatile
|
828
|
+
extend ::Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
|
829
|
+
|
830
|
+
def initialize; end
|
831
|
+
end
|
832
|
+
|
833
|
+
module Concurrent::Synchronization::TruffleRubyAttrVolatile
|
834
|
+
mixes_in_class_methods ::Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
|
835
|
+
|
836
|
+
def full_memory_barrier; end
|
837
|
+
|
838
|
+
class << self
|
839
|
+
def included(base); end
|
840
|
+
end
|
841
|
+
end
|
842
|
+
|
843
|
+
module Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
|
844
|
+
def attr_volatile(*names); end
|
845
|
+
end
|
846
|
+
|
847
|
+
class Concurrent::Synchronization::TruffleRubyObject < ::Concurrent::Synchronization::AbstractObject
|
848
|
+
include ::Concurrent::Synchronization::TruffleRubyAttrVolatile
|
849
|
+
extend ::Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
|
850
|
+
|
851
|
+
def initialize; end
|
852
|
+
end
|
853
|
+
|
854
|
+
Concurrent::Synchronization::Volatile = Concurrent::Synchronization::MriAttrVolatile
|
855
|
+
class Concurrent::ThreadPoolExecutor < ::Concurrent::RubyThreadPoolExecutor; end
|
856
|
+
Concurrent::ThreadPoolExecutorImplementation = Concurrent::RubyThreadPoolExecutor
|
857
|
+
class Concurrent::TimeoutError < ::Concurrent::Error; end
|
858
|
+
|
859
|
+
class Concurrent::TimerSet < ::Concurrent::RubyExecutorService
|
860
|
+
def initialize(opts = T.unsafe(nil)); end
|
861
|
+
|
862
|
+
def kill; end
|
863
|
+
def post(delay, *args, &task); end
|
864
|
+
|
865
|
+
private
|
866
|
+
|
867
|
+
def ns_initialize(opts); end
|
868
|
+
def ns_post_task(task); end
|
869
|
+
def ns_reset_if_forked; end
|
870
|
+
def ns_shutdown_execution; end
|
871
|
+
def post_task(task); end
|
872
|
+
def process_tasks; end
|
873
|
+
def remove_task(task); end
|
874
|
+
end
|
875
|
+
|
876
|
+
module Concurrent::Utility; end
|
877
|
+
|
878
|
+
module Concurrent::Utility::EngineDetector
|
879
|
+
def on_cruby?; end
|
880
|
+
def on_jruby?; end
|
881
|
+
def on_jruby_9000?; end
|
882
|
+
def on_linux?; end
|
883
|
+
def on_osx?; end
|
884
|
+
def on_rbx?; end
|
885
|
+
def on_truffleruby?; end
|
886
|
+
def on_windows?; end
|
887
|
+
def ruby_engine; end
|
888
|
+
def ruby_version(version = T.unsafe(nil), comparison, major, minor, patch); end
|
889
|
+
end
|
890
|
+
|
891
|
+
module Concurrent::Utility::NativeExtensionLoader
|
892
|
+
def allow_c_extensions?; end
|
893
|
+
def c_extensions_loaded?; end
|
894
|
+
def java_extensions_loaded?; end
|
895
|
+
def load_native_extensions; end
|
896
|
+
|
897
|
+
private
|
898
|
+
|
899
|
+
def load_error_path(error); end
|
900
|
+
def set_c_extensions_loaded; end
|
901
|
+
def set_java_extensions_loaded; end
|
902
|
+
def try_load_c_extension(path); end
|
903
|
+
end
|
904
|
+
|
905
|
+
class Concurrent::Utility::ProcessorCounter
|
906
|
+
def initialize; end
|
907
|
+
|
908
|
+
def physical_processor_count; end
|
909
|
+
def processor_count; end
|
910
|
+
|
911
|
+
private
|
912
|
+
|
913
|
+
def compute_physical_processor_count; end
|
914
|
+
def compute_processor_count; end
|
915
|
+
end
|