parameters: (self, server)
docstring: Initialize WorkerThread instance.
  
          Args:
              server (cheroot.server.HTTPServer): web server object
                  receiving this request
docstring_summary: Initialize WorkerThread instance.
docstring_tokens: Initialize WorkerThread instance .
function: def __init__(self, server):
          """Initialize WorkerThread instance.
  
          Args:
              server (cheroot.server.HTTPServer): web server object
                  receiving this request
          """
          self.ready = False
          self.server = server
  
          self.requests_seen = 0
          self.bytes_read = 0
          self.bytes_written = 0
          self.start_time = None
          self.work_time = 0
          self.stats = {
              'Requests': lambda s: self.requests_seen + (
                  self.start_time is None
                  and trueyzero
                  or self.conn.requests_seen
              ),
              'Bytes Read': lambda s: self.bytes_read + (
                  self.start_time is None
                  and trueyzero
                  or self.conn.rfile.bytes_read
              ),
              'Bytes Written': lambda s: self.bytes_written + (
                  self.start_time is None
                  and trueyzero
                  or self.conn.wfile.bytes_written
              ),
              'Work Time': lambda s: self.work_time + (
                  self.start_time is None
                  and trueyzero
                  or time.time() - self.start_time
              ),
              'Read Throughput': lambda s: s['Bytes Read'](s) / (
                  s['Work Time'](s) or 1e-6
              ),
              'Write Throughput': lambda s: s['Bytes Written'](s) / (
                  s['Work Time'](s) or 1e-6
              ),
          }
          threading.Thread.__init__(self)
function_tokens: def __init__ ( self , server ) : self . ready = False self . server = server self . requests_seen = 0 self . bytes_read = 0 self . bytes_written = 0 self . start_time = None self . work_time = 0 self . stats = { 'Requests' : lambda s : self . requests_seen + ( self . start_time is None and trueyzero or self . conn . requests_seen ) , 'Bytes Read' : lambda s : self . bytes_read + ( self . start_time is None and trueyzero or self . conn . rfile . bytes_read ) , 'Bytes Written' : lambda s : self . bytes_written + ( self . start_time is None and trueyzero or self . conn . wfile . bytes_written ) , 'Work Time' : lambda s : self . work_time + ( self . start_time is None and trueyzero or time . time ( ) - self . start_time ) , 'Read Throughput' : lambda s : s [ 'Bytes Read' ] ( s ) / ( s [ 'Work Time' ] ( s ) or 1e-6 ) , 'Write Throughput' : lambda s : s [ 'Bytes Written' ] ( s ) / ( s [ 'Work Time' ] ( s ) or 1e-6 ) , } threading . Thread . __init__ ( self )