ntl-actor 1.0.0.pre4 → 1.0.0.pre5
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/lib/actor/supervisor.rb +0 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bbcf6598eee031497d24632ac6ff00c6b4756cc
|
4
|
+
data.tar.gz: 51e50cbbb7488229a6c36e19976d0eef01e2c040
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b24ef9df7128c00260d9c964869bdf305a4845c0229d63c3fc806de68b1926c3edf436ac5fadc0a205f6ab0c9730b71664175fe139cf730f2d9cb05b991f228
|
7
|
+
data.tar.gz: d36ba1e22d9680c0169f69b7331c1b63f45377c9a1f65122a132937becb4a33727bb8798e29388aefebd43be1acab274ed9283263996650c952f515e4be82c46
|
data/lib/actor/supervisor.rb
CHANGED
@@ -26,16 +26,7 @@ module Actor
|
|
26
26
|
thread = Thread.new do
|
27
27
|
thread_group = Thread.current.group
|
28
28
|
|
29
|
-
prior_thread_count = thread_group.list.count
|
30
|
-
|
31
29
|
instance = build &assembly_block
|
32
|
-
|
33
|
-
thread_count = thread_group.list.count
|
34
|
-
|
35
|
-
unless thread_count > prior_thread_count
|
36
|
-
raise NoActorsStarted, "Assembly block must start at least one actor"
|
37
|
-
end
|
38
|
-
|
39
30
|
instance.run_loop
|
40
31
|
end
|
41
32
|
|