parameters: (self)
docstring: Generate a WaitHandle's parent chain.
docstring_summary: Generate a WaitHandle's parent chain.
docstring_tokens: Generate a WaitHandle s parent chain .
function: def chain(self):
          """Generate a WaitHandle's parent chain."""
          wh = self
          while wh is not None:
              yield wh
              wh = wh.parent()
function_tokens: def chain ( self ) : wh = self while wh is not None : yield wh wh = wh . parent ( )