code: def session(self, host: str, port: int, use_ssl: bool=False):
          '''Return a context manager that returns a connection.
  
          Usage::
  
              session = yield from connection_pool.session('example.com', 80)
              with session as connection:
                  connection.write(b'blah')
                  connection.close()
  
          Coroutine.
          '''
          connection = yield from self.acquire(host, port, use_ssl)
  
          @contextlib.contextmanager
          def context_wrapper():
              try:
                  yield connection
              finally:
                  self.no_wait_release(connection)
  
          return context_wrapper(f session(self, host: str, port: int, use_ssl: bool=False):
          '''Return a context manager that returns a connection.
  
          Usage::
  
              session = yield from connection_pool.session('example.com', 80)
              with session as connection:
                  connection.write(b'blah')
                  connection.close()
  
          Coroutine.
          '''
          connection = yield from self.acquire(host, port, use_ssl)
  
          @contextlib.contextmanager
          def context_wrapper():
              try:
                  yield connection
              finally:
                  self.no_wait_release(connection)
  
          return context_wrapper()
docs: Return a context manager that returns a connection.
  
          Usage::
  
              session = yield from connection_pool.session('example.com', 80)
              with session as connection:
                  connection.write(b'blah')
                  connection.close()
  
          Coroutine.