Lines Matching refs:Future

25    returns a :class:`Future` representing the execution of the callable.
79 Deadlock can occur when the callable associated with a :class:`Future` waits on
80 the results of another :class:`Future`. For example:
156 Calling :class:`Executor` or :class:`Future` methods from a callable submitted
199 Future Objects
202 The :class:`Future` class encapulates the asynchronous execution of a callable.
203 :class:`Future` instances are created by :meth:`Executor.submit`.
205 .. method:: Future.cancel()
211 .. method:: Future.cancelled()
215 .. method:: Future.running()
220 .. method:: Future.done()
224 .. method:: Future.result(timeout=None)
237 .. method:: Future.exception(timeout=None)
250 .. method:: Future.add_done_callback(fn)
265 Internal Future Methods
268 The following :class:`Future` methods are meant for use in unit tests and
271 .. method:: Future.set_running_or_notify_cancel()
274 executing the work associated with the :class:`Future` and by unit tests.
276 If the method returns `False` then the :class:`Future` was cancelled i.e.
277 :meth:`Future.cancel` was called and returned `True`. Any threads waiting
278 on the :class:`Future` completing (i.e. through :func:`as_completed` or
281 If the method returns `True` then the :class:`Future` was not cancelled
283 :meth:`Future.running` will return `True`.
286 :meth:`Future.set_result` or :meth:`Future.set_exception` have been
289 .. method:: Future.set_result(result)
291 Sets the result of the work associated with the :class:`Future` to *result*.
295 .. method:: Future.set_exception(exception)
297 Sets the result of the work associated with the :class:`Future` to the
307 Wait for the :class:`Future` instances (possibly created by different
338 Returns an iterator over the :class:`Future` instances (possibly created by