# File lib/em/spawnable.rb, line 34 34: def notify *x 35: me = self 36: EM.next_tick { 37: # A notification executes in the context of this 38: # SpawnedProcess object. That makes self and notify 39: # work as one would expect. 40: # 41: y = me.call(*x) 42: if y and y.respond_to?(:pull_out_yield_block) 43: a,b = y.pull_out_yield_block 44: set_receiver a 45: self.notify if b 46: end 47: } 48: end