21     """A simple future mechanism.""" 
   25         def wrapped_function():
 
   28             except Exception 
as error:  
 
   33         self.
_thread = threading.Thread(target=wrapped_function)
 
   37         """The resulting value of this future. 
   39     Re-raises any exceptions. 
   50     def __init__(self, completion_queue, deadline):
 
   51         super(CompletionQueuePollFuture,
 
   52               self).
__init__(
lambda: completion_queue.poll(deadline=deadline))