class TTY::Spinner

def join(timeout = nil)

Other tags:
    Api: - public

Parameters:
  • timeout (Float) --
def join(timeout = nil)
  unless @thread
    raise(NotSpinningError, 'Cannot join spinner that is not running')
  end
  timeout ? @thread.join(timeout) : @thread.join
end