twirbet 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twirbet/version.rb +1 -1
- metadata +1 -122
- data/.rspec +0 -3
- data/.rubocop.yml +0 -20
- data/CHANGELOG.md +0 -5
- data/Gemfile +0 -28
- data/Gemfile.lock +0 -127
- data/Rakefile +0 -17
- data/examples/clientcompat/client +0 -28
- data/examples/clientcompat/clientcompat.proto +0 -29
- data/examples/clientcompat/clientcompat_pb.rb +0 -36
- data/examples/clientcompat/clientcompat_twirbet.rb +0 -57
- data/examples/ping/Gemfile +0 -11
- data/examples/ping/Gemfile.lock +0 -69
- data/examples/ping/bin/puma +0 -27
- data/examples/ping/bin/pumactl +0 -27
- data/examples/ping/bin/srb +0 -27
- data/examples/ping/bin/srb-rbi +0 -27
- data/examples/ping/bin/tapioca +0 -27
- data/examples/ping/client.rb +0 -14
- data/examples/ping/config/application.rb +0 -13
- data/examples/ping/config/environment.rb +0 -6
- data/examples/ping/config.ru +0 -8
- data/examples/ping/proto/ping.proto +0 -15
- data/examples/ping/proto/ping_pb.rb +0 -20
- data/examples/ping/proto/ping_twirbet.rb +0 -47
- data/examples/ping/sorbet/config +0 -4
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto/extension_range.rbi +0 -34
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto/reserved_range.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto.rbi +0 -83
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_descriptor_proto/enum_reserved_range.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_descriptor_proto.rbi +0 -48
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_options.rbi +0 -34
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_value_descriptor_proto.rbi +0 -34
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_value_options.rbi +0 -27
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/extension_range_options.rbi +0 -20
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto/label.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto/type.rbi +0 -37
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto.rbi +0 -90
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_options/c_type.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_options/js_type.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_options.rbi +0 -69
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_descriptor_proto.rbi +0 -97
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_descriptor_set.rbi +0 -20
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_options/optimize_mode.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_options.rbi +0 -160
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/generated_code_info/annotation.rbi +0 -41
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/generated_code_info.rbi +0 -20
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/map.rbi +0 -12
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/message_options.rbi +0 -48
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/method_descriptor_proto.rbi +0 -55
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/method_options/idempotency_level.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/method_options.rbi +0 -34
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/oneof_descriptor_proto.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/oneof_options.rbi +0 -20
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/repeated_field.rbi +0 -11
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/service_descriptor_proto.rbi +0 -34
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/service_options.rbi +0 -27
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/source_code_info/location.rbi +0 -48
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/source_code_info.rbi +0 -20
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/uninterpreted_option/name_part.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/uninterpreted_option.rbi +0 -62
- data/examples/ping/sorbet/rbi/dsl/ping/ping_request.rbi +0 -16
- data/examples/ping/sorbet/rbi/dsl/ping/ping_response.rbi +0 -16
- data/examples/ping/sorbet/rbi/gems/ast@2.4.2.rbi +0 -584
- data/examples/ping/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -8
- data/examples/ping/sorbet/rbi/gems/google-protobuf@3.21.12.rbi +0 -1645
- data/examples/ping/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -158
- data/examples/ping/sorbet/rbi/gems/nio4r@2.5.8.rbi +0 -8
- data/examples/ping/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -277
- data/examples/ping/sorbet/rbi/gems/parser@3.1.3.0.rbi +0 -5076
- data/examples/ping/sorbet/rbi/gems/puma@6.0.0.rbi +0 -4177
- data/examples/ping/sorbet/rbi/gems/rack@3.0.2.rbi +0 -5016
- data/examples/ping/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -3008
- data/examples/ping/sorbet/rbi/gems/spoom@1.1.15.rbi +0 -2383
- data/examples/ping/sorbet/rbi/gems/tapioca@0.10.3.rbi +0 -3032
- data/examples/ping/sorbet/rbi/gems/thor@1.2.1.rbi +0 -3919
- data/examples/ping/sorbet/rbi/gems/twirbet@0.1.0.rbi +0 -528
- data/examples/ping/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -8
- data/examples/ping/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2498
- data/examples/ping/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +0 -391
- data/examples/ping/sorbet/rbi/gems/yard@0.9.28.rbi +0 -17022
- data/examples/ping/sorbet/tapioca/config.yml +0 -13
- data/examples/ping/sorbet/tapioca/require.rb +0 -5
- data/sorbet/config +0 -5
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/custom/ping.rbi +0 -23
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -584
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1064
- data/sorbet/rbi/gems/google-protobuf@3.21.12.rbi +0 -1645
- data/sorbet/rbi/gems/json@2.6.3.rbi +0 -1541
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -158
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -277
- data/sorbet/rbi/gems/parser@3.1.3.0.rbi +0 -6878
- data/sorbet/rbi/gems/rack@3.0.2.rbi +0 -5163
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -397
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -2946
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -3008
- data/sorbet/rbi/gems/regexp_parser@2.6.1.rbi +0 -3126
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -4660
- data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +0 -10492
- data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +0 -7817
- data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +0 -4994
- data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +0 -1477
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +0 -10
- data/sorbet/rbi/gems/rubocop-ast@1.24.0.rbi +0 -6790
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -354
- data/sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi +0 -7650
- data/sorbet/rbi/gems/rubocop-shopify@2.10.1.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +0 -1014
- data/sorbet/rbi/gems/rubocop@1.40.0.rbi +0 -51560
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1212
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +0 -2383
- data/sorbet/rbi/gems/tapioca@0.10.3.rbi +0 -3032
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -3950
- data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +0 -46
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4265
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2498
- data/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +0 -391
- data/sorbet/rbi/gems/yard@0.9.28.rbi +0 -17033
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
- data/twirbet.gemspec +0 -36
@@ -1,158 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `netrc` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem netrc`.
|
6
|
-
|
7
|
-
# source://netrc//lib/netrc.rb#3
|
8
|
-
class Netrc
|
9
|
-
# @return [Netrc] a new instance of Netrc
|
10
|
-
#
|
11
|
-
# source://netrc//lib/netrc.rb#166
|
12
|
-
def initialize(path, data); end
|
13
|
-
|
14
|
-
# source://netrc//lib/netrc.rb#180
|
15
|
-
def [](k); end
|
16
|
-
|
17
|
-
# source://netrc//lib/netrc.rb#188
|
18
|
-
def []=(k, info); end
|
19
|
-
|
20
|
-
# source://netrc//lib/netrc.rb#200
|
21
|
-
def delete(key); end
|
22
|
-
|
23
|
-
# source://netrc//lib/netrc.rb#211
|
24
|
-
def each(&block); end
|
25
|
-
|
26
|
-
# source://netrc//lib/netrc.rb#196
|
27
|
-
def length; end
|
28
|
-
|
29
|
-
# source://netrc//lib/netrc.rb#215
|
30
|
-
def new_item(m, l, p); end
|
31
|
-
|
32
|
-
# Returns the value of attribute new_item_prefix.
|
33
|
-
#
|
34
|
-
# source://netrc//lib/netrc.rb#178
|
35
|
-
def new_item_prefix; end
|
36
|
-
|
37
|
-
# Sets the attribute new_item_prefix
|
38
|
-
#
|
39
|
-
# @param value the value to set the attribute new_item_prefix to.
|
40
|
-
#
|
41
|
-
# source://netrc//lib/netrc.rb#178
|
42
|
-
def new_item_prefix=(_arg0); end
|
43
|
-
|
44
|
-
# source://netrc//lib/netrc.rb#219
|
45
|
-
def save; end
|
46
|
-
|
47
|
-
# source://netrc//lib/netrc.rb#233
|
48
|
-
def unparse; end
|
49
|
-
|
50
|
-
class << self
|
51
|
-
# source://netrc//lib/netrc.rb#42
|
52
|
-
def check_permissions(path); end
|
53
|
-
|
54
|
-
# source://netrc//lib/netrc.rb#33
|
55
|
-
def config; end
|
56
|
-
|
57
|
-
# @yield [self.config]
|
58
|
-
#
|
59
|
-
# source://netrc//lib/netrc.rb#37
|
60
|
-
def configure; end
|
61
|
-
|
62
|
-
# source://netrc//lib/netrc.rb#10
|
63
|
-
def default_path; end
|
64
|
-
|
65
|
-
# source://netrc//lib/netrc.rb#14
|
66
|
-
def home_path; end
|
67
|
-
|
68
|
-
# source://netrc//lib/netrc.rb#85
|
69
|
-
def lex(lines); end
|
70
|
-
|
71
|
-
# source://netrc//lib/netrc.rb#29
|
72
|
-
def netrc_filename; end
|
73
|
-
|
74
|
-
# Returns two values, a header and a list of items.
|
75
|
-
# Each item is a tuple, containing some or all of:
|
76
|
-
# - machine keyword (including trailing whitespace+comments)
|
77
|
-
# - machine name
|
78
|
-
# - login keyword (including surrounding whitespace+comments)
|
79
|
-
# - login
|
80
|
-
# - password keyword (including surrounding whitespace+comments)
|
81
|
-
# - password
|
82
|
-
# - trailing chars
|
83
|
-
# This lets us change individual fields, then write out the file
|
84
|
-
# with all its original formatting.
|
85
|
-
#
|
86
|
-
# source://netrc//lib/netrc.rb#129
|
87
|
-
def parse(ts); end
|
88
|
-
|
89
|
-
# Reads path and parses it as a .netrc file. If path doesn't
|
90
|
-
# exist, returns an empty object. Decrypt paths ending in .gpg.
|
91
|
-
#
|
92
|
-
# source://netrc//lib/netrc.rb#51
|
93
|
-
def read(path = T.unsafe(nil)); end
|
94
|
-
|
95
|
-
# @return [Boolean]
|
96
|
-
#
|
97
|
-
# source://netrc//lib/netrc.rb#112
|
98
|
-
def skip?(s); end
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
# source://netrc//lib/netrc.rb#8
|
103
|
-
Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped)
|
104
|
-
|
105
|
-
# source://netrc//lib/netrc.rb#244
|
106
|
-
class Netrc::Entry < ::Struct
|
107
|
-
# Returns the value of attribute login
|
108
|
-
#
|
109
|
-
# @return [Object] the current value of login
|
110
|
-
def login; end
|
111
|
-
|
112
|
-
# Sets the attribute login
|
113
|
-
#
|
114
|
-
# @param value [Object] the value to set the attribute login to.
|
115
|
-
# @return [Object] the newly set value
|
116
|
-
def login=(_); end
|
117
|
-
|
118
|
-
# Returns the value of attribute password
|
119
|
-
#
|
120
|
-
# @return [Object] the current value of password
|
121
|
-
def password; end
|
122
|
-
|
123
|
-
# Sets the attribute password
|
124
|
-
#
|
125
|
-
# @param value [Object] the value to set the attribute password to.
|
126
|
-
# @return [Object] the newly set value
|
127
|
-
def password=(_); end
|
128
|
-
|
129
|
-
def to_ary; end
|
130
|
-
|
131
|
-
class << self
|
132
|
-
def [](*_arg0); end
|
133
|
-
def inspect; end
|
134
|
-
def keyword_init?; end
|
135
|
-
def members; end
|
136
|
-
def new(*_arg0); end
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
# source://netrc//lib/netrc.rb#250
|
141
|
-
class Netrc::Error < ::StandardError; end
|
142
|
-
|
143
|
-
# source://netrc//lib/netrc.rb#68
|
144
|
-
class Netrc::TokenArray < ::Array
|
145
|
-
# source://netrc//lib/netrc.rb#76
|
146
|
-
def readto; end
|
147
|
-
|
148
|
-
# source://netrc//lib/netrc.rb#69
|
149
|
-
def take; end
|
150
|
-
end
|
151
|
-
|
152
|
-
# source://netrc//lib/netrc.rb#4
|
153
|
-
Netrc::VERSION = T.let(T.unsafe(nil), String)
|
154
|
-
|
155
|
-
# see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
|
156
|
-
#
|
157
|
-
# source://netrc//lib/netrc.rb#7
|
158
|
-
Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped)
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `nio4r` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem nio4r`.
|
6
|
-
|
7
|
-
# THIS IS AN EMPTY RBI FILE.
|
8
|
-
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
@@ -1,277 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `parallel` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem parallel`.
|
6
|
-
|
7
|
-
# source://parallel//lib/parallel/version.rb#2
|
8
|
-
module Parallel
|
9
|
-
extend ::Parallel::ProcessorCount
|
10
|
-
|
11
|
-
class << self
|
12
|
-
# @return [Boolean]
|
13
|
-
#
|
14
|
-
# source://parallel//lib/parallel.rb#246
|
15
|
-
def all?(*args, &block); end
|
16
|
-
|
17
|
-
# @return [Boolean]
|
18
|
-
#
|
19
|
-
# source://parallel//lib/parallel.rb#241
|
20
|
-
def any?(*args, &block); end
|
21
|
-
|
22
|
-
# source://parallel//lib/parallel.rb#237
|
23
|
-
def each(array, options = T.unsafe(nil), &block); end
|
24
|
-
|
25
|
-
# source://parallel//lib/parallel.rb#251
|
26
|
-
def each_with_index(array, options = T.unsafe(nil), &block); end
|
27
|
-
|
28
|
-
# source://parallel//lib/parallel.rb#306
|
29
|
-
def flat_map(*args, &block); end
|
30
|
-
|
31
|
-
# source://parallel//lib/parallel.rb#231
|
32
|
-
def in_processes(options = T.unsafe(nil), &block); end
|
33
|
-
|
34
|
-
# source://parallel//lib/parallel.rb#215
|
35
|
-
def in_threads(options = T.unsafe(nil)); end
|
36
|
-
|
37
|
-
# source://parallel//lib/parallel.rb#255
|
38
|
-
def map(source, options = T.unsafe(nil), &block); end
|
39
|
-
|
40
|
-
# source://parallel//lib/parallel.rb#302
|
41
|
-
def map_with_index(array, options = T.unsafe(nil), &block); end
|
42
|
-
|
43
|
-
# source://parallel//lib/parallel.rb#310
|
44
|
-
def worker_number; end
|
45
|
-
|
46
|
-
# TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
|
47
|
-
#
|
48
|
-
# source://parallel//lib/parallel.rb#315
|
49
|
-
def worker_number=(worker_num); end
|
50
|
-
|
51
|
-
private
|
52
|
-
|
53
|
-
# source://parallel//lib/parallel.rb#321
|
54
|
-
def add_progress_bar!(job_factory, options); end
|
55
|
-
|
56
|
-
# source://parallel//lib/parallel.rb#584
|
57
|
-
def call_with_index(item, index, options, &block); end
|
58
|
-
|
59
|
-
# source://parallel//lib/parallel.rb#516
|
60
|
-
def create_workers(job_factory, options, &block); end
|
61
|
-
|
62
|
-
# options is either a Integer or a Hash with :count
|
63
|
-
#
|
64
|
-
# source://parallel//lib/parallel.rb#574
|
65
|
-
def extract_count_from_options(options); end
|
66
|
-
|
67
|
-
# source://parallel//lib/parallel.rb#602
|
68
|
-
def instrument_finish(item, index, result, options); end
|
69
|
-
|
70
|
-
# source://parallel//lib/parallel.rb#607
|
71
|
-
def instrument_start(item, index, options); end
|
72
|
-
|
73
|
-
# source://parallel//lib/parallel.rb#550
|
74
|
-
def process_incoming_jobs(read, write, job_factory, options, &block); end
|
75
|
-
|
76
|
-
# source://parallel//lib/parallel.rb#504
|
77
|
-
def replace_worker(job_factory, workers, index, options, blk); end
|
78
|
-
|
79
|
-
# source://parallel//lib/parallel.rb#595
|
80
|
-
def with_instrumentation(item, index, options); end
|
81
|
-
|
82
|
-
# source://parallel//lib/parallel.rb#346
|
83
|
-
def work_direct(job_factory, options, &block); end
|
84
|
-
|
85
|
-
# source://parallel//lib/parallel.rb#456
|
86
|
-
def work_in_processes(job_factory, options, &blk); end
|
87
|
-
|
88
|
-
# source://parallel//lib/parallel.rb#390
|
89
|
-
def work_in_ractors(job_factory, options); end
|
90
|
-
|
91
|
-
# source://parallel//lib/parallel.rb#365
|
92
|
-
def work_in_threads(job_factory, options, &block); end
|
93
|
-
|
94
|
-
# source://parallel//lib/parallel.rb#524
|
95
|
-
def worker(job_factory, options, &block); end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
# source://parallel//lib/parallel.rb#14
|
100
|
-
class Parallel::Break < ::StandardError
|
101
|
-
# @return [Break] a new instance of Break
|
102
|
-
#
|
103
|
-
# source://parallel//lib/parallel.rb#17
|
104
|
-
def initialize(value = T.unsafe(nil)); end
|
105
|
-
|
106
|
-
# Returns the value of attribute value.
|
107
|
-
#
|
108
|
-
# source://parallel//lib/parallel.rb#15
|
109
|
-
def value; end
|
110
|
-
end
|
111
|
-
|
112
|
-
# source://parallel//lib/parallel.rb#11
|
113
|
-
class Parallel::DeadWorker < ::StandardError; end
|
114
|
-
|
115
|
-
# source://parallel//lib/parallel.rb#35
|
116
|
-
class Parallel::ExceptionWrapper
|
117
|
-
# @return [ExceptionWrapper] a new instance of ExceptionWrapper
|
118
|
-
#
|
119
|
-
# source://parallel//lib/parallel.rb#38
|
120
|
-
def initialize(exception); end
|
121
|
-
|
122
|
-
# Returns the value of attribute exception.
|
123
|
-
#
|
124
|
-
# source://parallel//lib/parallel.rb#36
|
125
|
-
def exception; end
|
126
|
-
end
|
127
|
-
|
128
|
-
# source://parallel//lib/parallel.rb#101
|
129
|
-
class Parallel::JobFactory
|
130
|
-
# @return [JobFactory] a new instance of JobFactory
|
131
|
-
#
|
132
|
-
# source://parallel//lib/parallel.rb#102
|
133
|
-
def initialize(source, mutex); end
|
134
|
-
|
135
|
-
# source://parallel//lib/parallel.rb#110
|
136
|
-
def next; end
|
137
|
-
|
138
|
-
# generate item that is sent to workers
|
139
|
-
# just index is faster + less likely to blow up with unserializable errors
|
140
|
-
#
|
141
|
-
# source://parallel//lib/parallel.rb#139
|
142
|
-
def pack(item, index); end
|
143
|
-
|
144
|
-
# source://parallel//lib/parallel.rb#129
|
145
|
-
def size; end
|
146
|
-
|
147
|
-
# unpack item that is sent to workers
|
148
|
-
#
|
149
|
-
# source://parallel//lib/parallel.rb#144
|
150
|
-
def unpack(data); end
|
151
|
-
|
152
|
-
private
|
153
|
-
|
154
|
-
# @return [Boolean]
|
155
|
-
#
|
156
|
-
# source://parallel//lib/parallel.rb#150
|
157
|
-
def producer?; end
|
158
|
-
|
159
|
-
# source://parallel//lib/parallel.rb#154
|
160
|
-
def queue_wrapper(array); end
|
161
|
-
end
|
162
|
-
|
163
|
-
# source://parallel//lib/parallel.rb#23
|
164
|
-
class Parallel::Kill < ::Parallel::Break; end
|
165
|
-
|
166
|
-
# TODO: inline this method into parallel.rb and kill physical_processor_count in next major release
|
167
|
-
#
|
168
|
-
# source://parallel//lib/parallel/processor_count.rb#4
|
169
|
-
module Parallel::ProcessorCount
|
170
|
-
# Number of physical processor cores on the current system.
|
171
|
-
#
|
172
|
-
# source://parallel//lib/parallel/processor_count.rb#12
|
173
|
-
def physical_processor_count; end
|
174
|
-
|
175
|
-
# Number of processors seen by the OS, used for process scheduling
|
176
|
-
#
|
177
|
-
# source://parallel//lib/parallel/processor_count.rb#6
|
178
|
-
def processor_count; end
|
179
|
-
end
|
180
|
-
|
181
|
-
# source://parallel//lib/parallel.rb#9
|
182
|
-
Parallel::Stop = T.let(T.unsafe(nil), Object)
|
183
|
-
|
184
|
-
# source://parallel//lib/parallel.rb#26
|
185
|
-
class Parallel::UndumpableException < ::StandardError
|
186
|
-
# @return [UndumpableException] a new instance of UndumpableException
|
187
|
-
#
|
188
|
-
# source://parallel//lib/parallel.rb#29
|
189
|
-
def initialize(original); end
|
190
|
-
|
191
|
-
# Returns the value of attribute backtrace.
|
192
|
-
#
|
193
|
-
# source://parallel//lib/parallel.rb#27
|
194
|
-
def backtrace; end
|
195
|
-
end
|
196
|
-
|
197
|
-
# source://parallel//lib/parallel.rb#159
|
198
|
-
class Parallel::UserInterruptHandler
|
199
|
-
class << self
|
200
|
-
# source://parallel//lib/parallel.rb#184
|
201
|
-
def kill(thing); end
|
202
|
-
|
203
|
-
# kill all these pids or threads if user presses Ctrl+c
|
204
|
-
#
|
205
|
-
# source://parallel//lib/parallel.rb#164
|
206
|
-
def kill_on_ctrl_c(pids, options); end
|
207
|
-
|
208
|
-
private
|
209
|
-
|
210
|
-
# source://parallel//lib/parallel.rb#208
|
211
|
-
def restore_interrupt(old, signal); end
|
212
|
-
|
213
|
-
# source://parallel//lib/parallel.rb#193
|
214
|
-
def trap_interrupt(signal); end
|
215
|
-
end
|
216
|
-
end
|
217
|
-
|
218
|
-
# source://parallel//lib/parallel.rb#160
|
219
|
-
Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
|
220
|
-
|
221
|
-
# source://parallel//lib/parallel/version.rb#3
|
222
|
-
Parallel::VERSION = T.let(T.unsafe(nil), String)
|
223
|
-
|
224
|
-
# source://parallel//lib/parallel/version.rb#3
|
225
|
-
Parallel::Version = T.let(T.unsafe(nil), String)
|
226
|
-
|
227
|
-
# source://parallel//lib/parallel.rb#54
|
228
|
-
class Parallel::Worker
|
229
|
-
# @return [Worker] a new instance of Worker
|
230
|
-
#
|
231
|
-
# source://parallel//lib/parallel.rb#58
|
232
|
-
def initialize(read, write, pid); end
|
233
|
-
|
234
|
-
# might be passed to started_processes and simultaneously closed by another thread
|
235
|
-
# when running in isolation mode, so we have to check if it is closed before closing
|
236
|
-
#
|
237
|
-
# source://parallel//lib/parallel.rb#71
|
238
|
-
def close_pipes; end
|
239
|
-
|
240
|
-
# Returns the value of attribute pid.
|
241
|
-
#
|
242
|
-
# source://parallel//lib/parallel.rb#55
|
243
|
-
def pid; end
|
244
|
-
|
245
|
-
# Returns the value of attribute read.
|
246
|
-
#
|
247
|
-
# source://parallel//lib/parallel.rb#55
|
248
|
-
def read; end
|
249
|
-
|
250
|
-
# source://parallel//lib/parallel.rb#64
|
251
|
-
def stop; end
|
252
|
-
|
253
|
-
# Returns the value of attribute thread.
|
254
|
-
#
|
255
|
-
# source://parallel//lib/parallel.rb#56
|
256
|
-
def thread; end
|
257
|
-
|
258
|
-
# Sets the attribute thread
|
259
|
-
#
|
260
|
-
# @param value the value to set the attribute thread to.
|
261
|
-
#
|
262
|
-
# source://parallel//lib/parallel.rb#56
|
263
|
-
def thread=(_arg0); end
|
264
|
-
|
265
|
-
# source://parallel//lib/parallel.rb#76
|
266
|
-
def work(data); end
|
267
|
-
|
268
|
-
# Returns the value of attribute write.
|
269
|
-
#
|
270
|
-
# source://parallel//lib/parallel.rb#55
|
271
|
-
def write; end
|
272
|
-
|
273
|
-
private
|
274
|
-
|
275
|
-
# source://parallel//lib/parallel.rb#94
|
276
|
-
def wait; end
|
277
|
-
end
|