parameters: (self, constructor)
docstring: Step environment in a separate process for lock free paralellism.
  
      The environment will be created in the external process by calling the
      specified callable. This can be an environment class, or a function
      creating the environment and potentially wrapping it. The returned
      environment should not access global variables.
  
      Args:
        constructor: Callable that creates and returns an OpenAI gym environment.
  
      Attributes:
        observation_space: The cached observation space of the environment.
        action_space: The cached action space of the environment.
docstring_summary: Step environment in a separate process for lock free paralellism.
docstring_tokens: Step environment in a separate process for lock free paralellism .
function: def __init__(self, constructor):
      """Step environment in a separate process for lock free paralellism.
  
      The environment will be created in the external process by calling the
      specified callable. This can be an environment class, or a function
      creating the environment and potentially wrapping it. The returned
      environment should not access global variables.
  
      Args:
        constructor: Callable that creates and returns an OpenAI gym environment.
  
      Attributes:
        observation_space: The cached observation space of the environment.
        action_space: The cached action space of the environment.
      """
      self._conn, conn = multiprocessing.Pipe()
      self._process = multiprocessing.Process(target=self._worker, args=(constructor, conn))
      atexit.register(self.close)
      self._process.start()
      self._observ_space = None
      self._action_space = None
function_tokens: def __init__ ( self , constructor ) : self . _conn , conn = multiprocessing . Pipe ( ) self . _process = multiprocessing . Process ( target = self . _worker , args = ( constructor , conn ) ) atexit . register ( self . close ) self . _process . start ( ) self . _observ_space = None self . _action_space = None