sorbet-result 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.standard.yml +1 -1
- data/.tool-versions +1 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +52 -57
- data/README.md +3 -3
- data/lib/typed/result.rb +32 -2
- data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
- data/sorbet/rbi/gems/io-console@0.7.2.rbi +1 -0
- data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.5.rbi} +148 -72
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +1 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.25.1.rbi} +252 -241
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
- data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.5.1.rbi} +233 -186
- data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
- data/sorbet/rbi/gems/psych@5.1.2.rbi +1 -0
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +38 -33
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
- data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
- data/sorbet/rbi/gems/{reline@0.4.2.rbi → reline@0.5.10.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.33.1.rbi} +1143 -671
- data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.22.1.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.7.8.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.66.1.rbi} +3312 -2415
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
- data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.5.0.rbi} +2009 -854
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
- data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.5.0.rbi} +1 -0
- data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +1 -0
- data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.41.1.rbi} +171 -95
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.3.rbi} +357 -257
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
- data/sorbet/rbi/gems/{unicode-display_width@2.5.0.rbi → unicode-display_width@2.6.0.rbi} +1 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
- metadata +28 -45
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
- data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `parallel` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem parallel`.
|
6
6
|
|
7
|
+
|
7
8
|
# source://parallel//lib/parallel/version.rb#2
|
8
9
|
module Parallel
|
9
10
|
class << self
|
@@ -24,10 +25,10 @@ module Parallel
|
|
24
25
|
def each_with_index(array, options = T.unsafe(nil), &block); end
|
25
26
|
|
26
27
|
# source://parallel//lib/parallel.rb#307
|
27
|
-
def filter_map(*
|
28
|
+
def filter_map(*_arg0, **_arg1, &_arg2); end
|
28
29
|
|
29
30
|
# source://parallel//lib/parallel.rb#303
|
30
|
-
def flat_map(*
|
31
|
+
def flat_map(*_arg0, **_arg1, &_arg2); end
|
31
32
|
|
32
33
|
# source://parallel//lib/parallel.rb#228
|
33
34
|
def in_processes(options = T.unsafe(nil), &block); end
|
@@ -46,70 +47,80 @@ module Parallel
|
|
46
47
|
# source://parallel//lib/parallel.rb#312
|
47
48
|
def physical_processor_count; end
|
48
49
|
|
49
|
-
# Number of processors seen by the OS
|
50
|
+
# Number of processors seen by the OS or value considering CPU quota if the process is inside a cgroup,
|
51
|
+
# used for process scheduling
|
50
52
|
#
|
51
|
-
# source://parallel//lib/parallel.rb#
|
53
|
+
# source://parallel//lib/parallel.rb#342
|
52
54
|
def processor_count; end
|
53
55
|
|
54
|
-
# source://parallel//lib/parallel.rb#
|
56
|
+
# source://parallel//lib/parallel.rb#346
|
55
57
|
def worker_number; end
|
56
58
|
|
57
59
|
# TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
|
58
60
|
#
|
59
|
-
# source://parallel//lib/parallel.rb#
|
61
|
+
# source://parallel//lib/parallel.rb#351
|
60
62
|
def worker_number=(worker_num); end
|
61
63
|
|
62
64
|
private
|
63
65
|
|
64
|
-
# source://parallel//lib/parallel.rb#
|
66
|
+
# source://parallel//lib/parallel.rb#384
|
65
67
|
def add_progress_bar!(job_factory, options); end
|
66
68
|
|
67
|
-
# source://parallel//lib/parallel.rb#
|
69
|
+
# source://parallel//lib/parallel.rb#699
|
70
|
+
def available_processor_count; end
|
71
|
+
|
72
|
+
# source://parallel//lib/parallel.rb#647
|
68
73
|
def call_with_index(item, index, options, &block); end
|
69
74
|
|
70
|
-
# source://parallel//lib/parallel.rb#
|
75
|
+
# source://parallel//lib/parallel.rb#579
|
71
76
|
def create_workers(job_factory, options, &block); end
|
72
77
|
|
73
78
|
# options is either a Integer or a Hash with :count
|
74
79
|
#
|
75
|
-
# source://parallel//lib/parallel.rb#
|
80
|
+
# source://parallel//lib/parallel.rb#637
|
76
81
|
def extract_count_from_options(options); end
|
77
82
|
|
78
|
-
# source://parallel//lib/parallel.rb#
|
83
|
+
# source://parallel//lib/parallel.rb#665
|
79
84
|
def instrument_finish(item, index, result, options); end
|
80
85
|
|
81
86
|
# yield results in the order of the input items
|
82
87
|
# needs to use `options` to store state between executions
|
83
88
|
# needs to use `done` index since a nil result would also be valid
|
84
89
|
#
|
85
|
-
# source://parallel//lib/parallel.rb#
|
90
|
+
# source://parallel//lib/parallel.rb#674
|
86
91
|
def instrument_finish_in_order(item, index, result, options); end
|
87
92
|
|
88
|
-
# source://parallel//lib/parallel.rb#
|
93
|
+
# source://parallel//lib/parallel.rb#694
|
89
94
|
def instrument_start(item, index, options); end
|
90
95
|
|
91
|
-
# source://parallel//lib/parallel.rb#
|
96
|
+
# source://parallel//lib/parallel.rb#357
|
97
|
+
def physical_processor_count_windows; end
|
98
|
+
|
99
|
+
# source://parallel//lib/parallel.rb#613
|
92
100
|
def process_incoming_jobs(read, write, job_factory, options, &block); end
|
93
101
|
|
94
|
-
# source://parallel//lib/parallel.rb#
|
102
|
+
# source://parallel//lib/parallel.rb#567
|
95
103
|
def replace_worker(job_factory, workers, index, options, blk); end
|
96
104
|
|
97
|
-
# source://parallel//lib/parallel.rb#
|
105
|
+
# source://parallel//lib/parallel.rb#378
|
106
|
+
def run(command); end
|
107
|
+
|
108
|
+
# source://parallel//lib/parallel.rb#658
|
98
109
|
def with_instrumentation(item, index, options); end
|
99
110
|
|
100
|
-
# source://parallel//lib/parallel.rb#
|
111
|
+
# source://parallel//lib/parallel.rb#409
|
101
112
|
def work_direct(job_factory, options, &block); end
|
102
113
|
|
103
|
-
# source://parallel//lib/parallel.rb#
|
114
|
+
# source://parallel//lib/parallel.rb#519
|
104
115
|
def work_in_processes(job_factory, options, &blk); end
|
105
116
|
|
106
|
-
# source://parallel//lib/parallel.rb#
|
117
|
+
# source://parallel//lib/parallel.rb#453
|
107
118
|
def work_in_ractors(job_factory, options); end
|
108
119
|
|
109
|
-
# source://parallel//lib/parallel.rb#
|
120
|
+
# source://parallel//lib/parallel.rb#428
|
110
121
|
def work_in_threads(job_factory, options, &block); end
|
111
122
|
|
112
|
-
# source://parallel//lib/parallel.rb#
|
123
|
+
# source://parallel//lib/parallel.rb#587
|
113
124
|
def worker(job_factory, options, &block); end
|
114
125
|
end
|
115
126
|
end
|