class_docstr: Test Future interface to make sure all backend behave the same
docstr: Wait - Timeout
docstr_tok: ["Wait","-","Timeout"]
code: def wait_timeout(self, executor):
      """Wait - Timeout"""
      future = executor.submit(function, FunctionException, 1, None)
  
      assert future.ready() is False
  
      future.wait(0.01)
  
      # SingleExecutor is not truly async so
      # results are always ready after a wait
      if not isinstance(executor, SingleExecutor):
          assert future.ready() is False
      else:
          assert future.ready() is True
  
      future.wait()
      assert future.ready() is True
  
imports: import time
  import pytest
  from orion.executor.dask_backend import HAS_DASK, Dask
  from orion.executor.multiprocess_backend import PoolExecutor
  from orion.executor.single_backend import SingleExecutor
label_desc: Use image node_id 7 for calling the TestFutures obj's underlying member method code with example usage: obj.wait_timeout(executor) without return types