Lines Matching defs:future

683         /* The future is done/cancelled, so schedule the callback
690 /* The future is pending, add a callback.
692 Callbacks in the future object are stored as follows:
781 raise an exception when the future isn't done yet.
835 Return the result this future represents.
837 If the future has been cancelled, raises CancelledError. If the
838 future's result isn't yet available, raises InvalidStateError. If
839 the future is done and has an exception set, this exception is raised.
874 Return the exception that was set on this future.
877 the future is done. If the future has been cancelled, raises
878 CancelledError. If the future isn't done yet, raises
917 Mark the future done and set its result.
919 If the future is already done when this method is called, raises
937 Mark the future done and set an exception.
939 If the future is already done when this method is called, raises
959 Add a callback to be run when the future becomes done.
961 The callback is called with a single argument - the future object. If
962 the future is already done when this is called, the callback is
1101 Cancel the future and schedule callbacks.
1103 If the future is already done or cancelled, return False. Otherwise,
1104 change the future's state to cancelled, schedule the callbacks and
1119 Return True if the future was cancelled.
1137 Return True if the future is done.
1140 future was cancelled.
1405 _Py_IDENTIFIER(future);
1561 FutureObj *future;
1574 Py_CLEAR(it->future);
1578 it->future = (FutureObj*) fi_freelist;
1594 FutureObj *fut = it->future;
1609 "await wasn't used with future");
1613 it->future = NULL;
1705 Py_CLEAR(self->future);
1721 Py_CLEAR(self->future);
1728 Py_VISIT(it->future);
1777 fi_freelist = (futureiterobject*) it->future;
1778 it->future = NULL;
1789 it->future = (FutureObj*)fut;
2790 /* Check if `result` future is attached to a different loop */
2862 /* Check if `result` future is attached to a different loop */
3320 next = (PyObject*) ((futureiterobject*) current)->future;