parameters: (self, loop=None)
docstring: Schedules the receive loop to run on the given loop.
docstring_summary: Schedules the receive loop to run on the given loop.
docstring_tokens: Schedules the receive loop to run on the given loop .
function: def enable_receiving(self, loop=None):
          """Schedules the receive loop to run on the given loop."""
          self.receive_task = asyncio.ensure_future(self._receive_loop(), loop=loop)
  
          def do_if_done(fut):
              try:
                  fut.result()
              except asyncio.CancelledError:
                  pass
              except Exception as ex:
                  self.receive_task_exception = ex
              self.receive_task = None
  
          self.receive_task.add_done_callback(do_if_done)
function_tokens: def enable_receiving ( self , loop = None ) : self . receive_task = asyncio . ensure_future ( self . _receive_loop ( ) , loop = loop ) def do_if_done ( fut ) : try : fut . result ( ) except asyncio . CancelledError : pass except Exception as ex : self . receive_task_exception = ex self . receive_task = None self . receive_task . add_done_callback ( do_if_done )