multiprocess-threads 0.0.1 → 0.0.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/multiprocess-threads.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 437522eb4401d6c4e0ed56f5895bf5ab6d1d29130619a32743db3894470757d6
4
- data.tar.gz: d180a170c09cd6212b6530ce36c61663a85f974071206af71bee1262b78255a8
3
+ metadata.gz: e3971fe9c71e887661b1dcefb3611b43d2b37ab1680cc723e2f57cdb47b294d3
4
+ data.tar.gz: 9996f19aa9151b006f2affdfa811e9a337f5575dbc812fc16eadd353882bc4ab
5
5
  SHA512:
6
- metadata.gz: 4286f37714a22d3af95ae0dd67f1ea956f642e69f5cd3dc8f67125116e1bf53d94ec5a4b67dde4faf639763b32ffb54c875d2fe0e8db70e255c48baf25ba7a8e
7
- data.tar.gz: 70be491ecc2a8abff946097383d510326a46bb0197cdfd50428c0d19e652e5cd6a9c1c3fb1dfb7295f9d4ea3c0b4e47897c5fd0c49e7555aede251a828057b29
6
+ metadata.gz: a78191430451155cacde7ea6aafb3cc2276903365aaaa327d217a484745582a76423504ec479e9759aa378946a924b9276fe19f0df5ce6eca0189f78c698783c
7
+ data.tar.gz: 4026b9d12159c3a5c0cf24b4b3a32680e49e9e13d3addf4442c371d1a7209f30c9a9e902adb6abeb43a1ed34cfe54a7ce71c29cd2e4a2e0b00f1b3cbe8b4a1cd
@@ -52,7 +52,8 @@ module MPThreads
52
52
  def spawn_threads(count, proc_i, &block)
53
53
  count.times.map do |i|
54
54
  Thread.new do
55
- @channel.instance_exec(proc_i, i, &block)
55
+ res = @channel.instance_exec(proc_i, i, &block)
56
+ @channel.write res if res
56
57
  end
57
58
  end
58
59
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiprocess-threads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Yudin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-16 00:00:00.000000000 Z
11
+ date: 2022-11-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: More effective threading using multiple processes and channel
14
14
  email: fagci.nsk@gmail.com