ractor-pool 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.buildkite/pipeline.yml +7 -11
- data/CHANGELOG.md +4 -0
- data/lib/ractor-pool/version.rb +1 -1
- data/lib/ractor-pool.rb +2 -2
- data/sig/generated/ractor-pool.rbs +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db5eade7ed071733ea399dae4fdee20f9a2c1ec3a542d0587f1c9450fa53d2c6
|
|
4
|
+
data.tar.gz: a9769861a3f55e1801eaf9a702841dd8112223656bbfb0842c0b167d850a6823
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27b437672161ad04c27724374c8d03710e7f21b9fdc7a9e3f602f69bf5c3e12db1ac21e1116d325a92762d85791fa3450242e9015b9a552fe6e498e57ce3bb2f
|
|
7
|
+
data.tar.gz: 3ccc58e97f8c40328b01cc608e2ded0e2316c595de01c8c583305f0ecafd857737dcf42704c1b013852eab3211d2f2af2385a5ca2c43f28284953a2dd6e93627
|
data/.buildkite/pipeline.yml
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
steps:
|
|
2
|
-
- label: ":ruby: Ruby
|
|
2
|
+
# - label: ":ruby: Ruby 4.0"
|
|
3
|
+
# image: "ruby:4.0"
|
|
4
|
+
# commands:
|
|
5
|
+
# - bundle install
|
|
6
|
+
# - bundle exec rake
|
|
7
|
+
|
|
8
|
+
- label: ":ruby: Ruby head"
|
|
3
9
|
image: "rubylang/ruby:master-dev"
|
|
4
10
|
commands:
|
|
5
11
|
- apt-get update && apt-get install -y libyaml-dev
|
|
6
12
|
- bundle install
|
|
7
13
|
- bundle exec rake
|
|
8
|
-
|
|
9
|
-
# - label: ":ruby: Ruby {{matrix.ruby}}"
|
|
10
|
-
# image: "ruby:{{matrix.ruby}}"
|
|
11
|
-
# commands:
|
|
12
|
-
# - bundle install
|
|
13
|
-
# - bundle exec rake
|
|
14
|
-
# matrix:
|
|
15
|
-
# setup:
|
|
16
|
-
# ruby:
|
|
17
|
-
# - 3.5.0
|
data/CHANGELOG.md
CHANGED
data/lib/ractor-pool/version.rb
CHANGED
data/lib/ractor-pool.rb
CHANGED
|
@@ -72,10 +72,10 @@ class RactorPool
|
|
|
72
72
|
# @raise [ArgumentError] if worker is not a proc
|
|
73
73
|
#
|
|
74
74
|
# @example With result handler
|
|
75
|
-
# pool = RactorPool.new(size: 4, worker:
|
|
75
|
+
# pool = RactorPool.new(size: 4, worker: proc { it }) { |result| puts result }
|
|
76
76
|
#
|
|
77
77
|
# @example Without result handler
|
|
78
|
-
# pool = RactorPool.new(size: 4, worker:
|
|
78
|
+
# pool = RactorPool.new(size: 4, worker: proc { it })
|
|
79
79
|
#
|
|
80
80
|
# @rbs (?size: Integer, worker: ^(untyped) -> untyped, ?name: String?) ?{ (untyped) -> void } -> void
|
|
81
81
|
def initialize(size: Etc.nprocessors, worker:, name: nil, &result_handler)
|
|
@@ -73,10 +73,10 @@ class RactorPool
|
|
|
73
73
|
# @raise [ArgumentError] if worker is not a proc
|
|
74
74
|
#
|
|
75
75
|
# @example With result handler
|
|
76
|
-
# pool = RactorPool.new(size: 4, worker:
|
|
76
|
+
# pool = RactorPool.new(size: 4, worker: proc { it }) { |result| puts result }
|
|
77
77
|
#
|
|
78
78
|
# @example Without result handler
|
|
79
|
-
# pool = RactorPool.new(size: 4, worker:
|
|
79
|
+
# pool = RactorPool.new(size: 4, worker: proc { it })
|
|
80
80
|
#
|
|
81
81
|
# @rbs (?size: Integer, worker: ^(untyped) -> untyped, ?name: String?) ?{ (untyped) -> void } -> void
|
|
82
82
|
def initialize: (worker: ^(untyped) -> untyped, ?size: Integer, ?name: String?) ?{ (untyped) -> void } -> void
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ractor-pool
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua Young
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
requirements:
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version:
|
|
69
|
+
version: 4.0.0.dev
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|