Object
Support for Erlang-style processes.
Send a message to the spawned process
# File lib/em/spawnable.rb, line 31
31: def notify *x
32: me = self
33: EM.next_tick {
34: # A notification executes in the context of this
35: # SpawnedProcess object. That makes self and notify
36: # work as one would expect.
37: #
38: y = me.call(*x)
39: if y and y.respond_to?(:pull_out_yield_block)
40: a,b = y.pull_out_yield_block
41: set_receiver a
42: self.notify if b
43: end
44: }
45: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.