Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
concurrent.futures.thread._WorkItem Class Reference
Inheritance diagram for concurrent.futures.thread._WorkItem:
Inheritance graph
Collaboration diagram for concurrent.futures.thread._WorkItem:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def run

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 42 of file

Constructor & Destructor Documentation

def concurrent.futures.thread._WorkItem.__init__ (   self,

Definition at line 43 of file

00044     def __init__(self, future, fn, args, kwargs):
00045         self.future = future
00046         self.fn = fn
00047         self.args = args
00048         self.kwargs = kwargs

Here is the caller graph for this function:

Member Function Documentation

Definition at line 49 of file

00050     def run(self):
00051         if not self.future.set_running_or_notify_cancel():
00052             return
00054         try:
00055             result = self.fn(*self.args, **self.kwargs)
00056         except BaseException as e:
00057             self.future.set_exception(e)
00058         else:
00059             self.future.set_result(result)

Here is the caller graph for this function:

Member Data Documentation

Definition at line 46 of file

Definition at line 45 of file

Definition at line 44 of file

Definition at line 47 of file

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: