iprocess 5.0.0 → 5.0.1
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.
- data/README.md +8 -4
- data/lib/iprocess/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -49,14 +49,18 @@ try this:
|
|
49
49
|
|
50
50
|
__3.__
|
51
51
|
|
52
|
-
A demo of how you would spawn two subprocesses asynchronously
|
52
|
+
A demo of how you would spawn two subprocesses asynchronously.
|
53
|
+
Note that although the subprocesses are spawned asynchrounsly you can still
|
54
|
+
communicate by using an API tailored to asynchrounous programming.
|
53
55
|
|
54
56
|
class Inbox
|
55
|
-
|
56
|
-
|
57
|
-
def initialize
|
57
|
+
def initialize() @msgs = [] end
|
58
58
|
@msgs = []
|
59
59
|
end
|
60
|
+
|
61
|
+
def msgs
|
62
|
+
@msgs
|
63
|
+
end
|
60
64
|
|
61
65
|
def recv(msg)
|
62
66
|
@msgs << msg
|
data/lib/iprocess/version.rb
CHANGED