rx-healthcheck 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a275e460e929db3791b73f3acd52d036641d4128212ee4803dc9a16788d49ea4
4
- data.tar.gz: 0cebd0272eb7b8d03c443deec4f77a4e771f24c40e5536f01ff438af2d392a23
3
+ metadata.gz: 413f9d8b2e63ed831d68f8da5bfcfc32e40ca7eb93cf2b7a591c442d3bc2e205
4
+ data.tar.gz: d455aa46093f8d43b0c8be1d6464837f14603b1f44eadbf9078e1159a1bca9c3
5
5
  SHA512:
6
- metadata.gz: e47bfd076e689fd4f35f9b5f8f1e9e25545d9a89092628507f2d0bebf00fd594d12d797460015f4c94dd32df589100beca9ed3184966a9778480c73f24d52640
7
- data.tar.gz: 5f30e6b1da95f03200f0d0ab83e27cd48b1557a1446dccb5567490af7d951654b7294e31b4a622134e8fbd20e752c07836b4bdb1267775180cc03ffc462c5884
6
+ metadata.gz: 2fdf00d9d3110daec49fef3c4aab4c1cd902d7d516283d361c5b78b28909c343d2fc1af87c4be9557b090783f3d6fbb3b17d0987e6f00ee26cad5e6d7564f488
7
+ data.tar.gz: 5f94fbdedc4f8d88b89332ffc544a2f1655a962c3f166a34f6d938c36bb77a733317cf0b4bbb6adaa76abc98a40d3ec317291ab76e3496f4600cca348cc1462c
@@ -14,6 +14,10 @@ module Rx
14
14
  Future.new(&block).execute
15
15
  end
16
16
 
17
+ def self.thread_pool
18
+ @@pool
19
+ end
20
+
17
21
  def initialize(&block)
18
22
  @channel = Queue.new
19
23
  @state = :pending
@@ -25,6 +25,11 @@ module Rx
25
25
  self
26
26
  end
27
27
 
28
+ def restart
29
+ shutdown
30
+ start
31
+ end
32
+
28
33
  def started?
29
34
  pool.map(&:alive?).any?
30
35
  end
data/lib/rx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rx
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rx-healthcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Pendleton