class Nursery::Child
Attributes
config[R]
nursery[R]
thread[R]
Public Class Methods
new(nursery, config, job)
click to toggle source
# File lib/nursery/child.rb, line 8 def initialize(nursery, config, job) @nursery = nursery @thread = Thread.new(&job) @thread[:nursery] = nursery @config = config end
Public Instance Methods
finish()
click to toggle source
# File lib/nursery/child.rb, line 15 def finish thread.join unless self.thread == Thread.current nil rescue CancelledJob nil rescue Exception raise unless @config[:swallow_exceptions] end