lib/webby/stelan/spawner.rb
# call-seq:
#    join( timeout = nil )    => spawner or nil
#
# The calling thread will suspend execution until all child processes have
# been stopped. Does not return until all spawner threads have exited (the
# child processes have been stopped) or until _timeout seconds have
# passed. If the timeout expires +nil+ will be returned; otherwise the
# spawner is returned.
#
call-seq:
join( timeout = nil )    => spawner or nil

The calling thread will suspend execution until all child processes have
been stopped. Does not return until all spawner threads have exited (the
child processes have been stopped) or until _timeout seconds have
passed. If the timeout expires +nil+ will be returned; otherwise the
spawner is returned.
call - seq : join ( timeout = nil ) = > spawner or nil The calling thread will suspend execution until all child processes have been stopped . Does not return until all spawner threads have exited ( the child processes have been stopped ) or until _timeout seconds have passed . If the timeout expires + nil + will be returned ; otherwise the spawner is returned .
def join( limit = nil )
    loop do
      t = @group.list.first
      break if t.nil?
      return nil unless t.join(limit)
    end
    self
  end
def join ( limit = nil ) loop do t = @group . list . first break if t . nil? return nil unless t . join ( limit ) end self end
call-seq:
join( timeout = nil )    => spawner or nil
call - seq : join ( timeout = nil ) = > spawner or nil
limit