iprocess 2.1.0 → 2.1.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 +6 -6
- data/lib/iprocess/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -49,13 +49,13 @@ __3.__
|
|
49
49
|
A single subprocess is spawned asynchronously.
|
50
50
|
When the subprocess completes, ':hi' is sent to `obj#recv` from another thread.
|
51
51
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
52
|
+
obj = Object.new
|
53
|
+
def obj.recv(msg)
|
54
|
+
msg.to_s.captialize!
|
55
|
+
end
|
56
56
|
|
57
|
-
|
58
|
-
|
57
|
+
jobs = IProcess.spawn! { :hi }
|
58
|
+
jobs.map { |job| job.defer(listener) }
|
59
59
|
|
60
60
|
|
61
61
|
__PLATFORM SUPPORT__
|
data/lib/iprocess/version.rb
CHANGED