Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
concurrent.futures._base._Waiter Class Reference
Inheritance diagram for concurrent.futures._base._Waiter:
Inheritance graph
[legend]
Collaboration diagram for concurrent.futures._base._Waiter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def add_result
def add_exception
def add_cancelled

Public Attributes

 event
 finished_futures
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Provides the event that wait() and as_completed() block on.

Definition at line 57 of file _base.py.


Constructor & Destructor Documentation

Reimplemented in concurrent.futures._base._AsCompletedWaiter.

Definition at line 59 of file _base.py.

00059 
00060     def __init__(self):
00061         self.event = threading.Event()
00062         self.finished_futures = []

Here is the caller graph for this function:


Member Function Documentation

def concurrent.futures._base._Waiter.add_cancelled (   self,
  future 
)

Reimplemented in concurrent.futures._base._AllCompletedWaiter, concurrent.futures._base._FirstCompletedWaiter, and concurrent.futures._base._AsCompletedWaiter.

Definition at line 69 of file _base.py.

00069 
00070     def add_cancelled(self, future):
00071         self.finished_futures.append(future)

def concurrent.futures._base._Waiter.add_exception (   self,
  future 
)

Reimplemented in concurrent.futures._base._AllCompletedWaiter, concurrent.futures._base._FirstCompletedWaiter, and concurrent.futures._base._AsCompletedWaiter.

Definition at line 66 of file _base.py.

00066 
00067     def add_exception(self, future):
00068         self.finished_futures.append(future)

def concurrent.futures._base._Waiter.add_result (   self,
  future 
)

Reimplemented in concurrent.futures._base._AllCompletedWaiter, concurrent.futures._base._FirstCompletedWaiter, and concurrent.futures._base._AsCompletedWaiter.

Definition at line 63 of file _base.py.

00063 
00064     def add_result(self, future):
00065         self.finished_futures.append(future)


Member Data Documentation

Definition at line 60 of file _base.py.

Definition at line 61 of file _base.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file: