code: def _get_deadline(results, timeout=None):
      
      start_time = time()
  
      all_deadlines = set(result.get_deadline() for result in results)
      all_deadlines.discard(None)
      if timeout is not None:
          all_deadlines.add(start_time + timeout)
      return min(all_deadlines) if all_deadlines else None
docs: returns the earliest deadline point in time