class_docstr: Helper class which serves as a return value from `ProgressBarWidget.render` method.
  
  It consists of the rendered string itself, and the schedule for when the widget has to be rendered again. The
  widget can request to be rerendered at a specific moment in time, or when the process reaches a certain progress
  level (or whichever comes sooner).
class_docstr_tok: ["Helper","class","which","serves","as","a","return","value","from","`","ProgressBarWidget.render","`","method",".","It","consists","of","the","rendered","string","itself",",","and","the","schedule","for","when","the","widget","has","to","be","rendered","again",".","The","widget","can","request","to","be","rerendered","at","a","specific","moment","in","time",",","or","when","the","process","reaches","a","certain","progress","level","(","or","whichever","comes","sooner",")","."]
docstr: Initialize a new RenderResult instance.
  
  :param rendered: string representing the rendered widget.
  :param length: the character length of the rendered result (this could be different from ``len(rendered)`` if
      the result contains ANSI escape sequences).
  :param next_progress: request the widget to be rendered again when process' progress reaches this level.
  :param next_time: request the widget to be rendered again at this moment in time.
docstr_tok: ["Initialize","a","new","RenderResult","instance",".",":","param","rendered",":","string","representing","the","rendered","widget",".",":","param","length",":","the","character","length","of","the","rendered","result","(","this","could","be","different","from","``","len","(","rendered",")","``","if","the","result","contains","ANSI","escape","sequences",")",".",":","param","next_progress",":","request","the","widget","to","be","rendered","again","when","process","'","progress","reaches","this","level",".",":","param","next_time",":","request","the","widget","to","be","rendered","again","at","this","moment","in","time","."]
code: def __init__(
      self, rendered="", length=None, next_progress=1.0, next_time=1e20
  ):
      """
      Initialize a new RenderResult instance.
  
      :param rendered: string representing the rendered widget.
      :param length: the character length of the rendered result (this could be different from ``len(rendered)`` if
          the result contains ANSI escape sequences).
      :param next_progress: request the widget to be rendered again when process' progress reaches this level.
      :param next_time: request the widget to be rendered again at this moment in time.
      """
      assert_is_type(rendered, str)
      assert_is_type(length, int, None)
      assert_is_type(next_progress, float)
      assert_is_type(next_time, int, float)
      self.rendered = rendered
      self.length = length if length is not None else len(rendered)
      self.next_progress = next_progress
      self.next_time = next_time
  
imports: from h2o.utils.compatibility import *
  import math
  import os
  import sys
  import time
  from types import FunctionType, GeneratorType, MethodType
  from h2o.utils.shared_utils import clamp
  from h2o.utils.typechecks import assert_is_type, is_type, numeric
label_desc: Use image node_id 1 to create a new RenderResult object from inherited base classes: object with example: obj = RenderResult(rendered, length, next_progress, next_time)