concurrent-ruby 0.1.1.pre.1 → 0.1.1.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/concurrent/executor.rb +7 -3
- data/lib/concurrent/reactor.rb +1 -1
- data/lib/concurrent/version.rb +1 -1
- metadata +2 -2
data/lib/concurrent/executor.rb
CHANGED
@@ -37,11 +37,15 @@ module Concurrent
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def kill
|
40
|
-
@thread.
|
41
|
-
|
40
|
+
unless @thread.nil?
|
41
|
+
atomic do
|
42
|
+
stop
|
43
|
+
Thread.kill(@thread)
|
44
|
+
@thread = nil
|
45
|
+
end
|
46
|
+
end
|
42
47
|
end
|
43
48
|
alias_method :terminate, :kill
|
44
|
-
alias_method :stop, :kill
|
45
49
|
end
|
46
50
|
|
47
51
|
EXECUTION_INTERVAL = 60
|
data/lib/concurrent/reactor.rb
CHANGED
data/lib/concurrent/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: concurrent-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.pre.
|
4
|
+
version: 0.1.1.pre.2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: functional-ruby
|