lib/task/worker.py
def handle(self, handle):
        '''
        Sets the thread handle for the worker.
        '''
        if handle is None:
            # clear state
            self._handle = None
            return

        if handle is not None and not isinstance(handle, threading.Thread):
            raise TypeError(
                'thread handle must be a threading.Thread: %r' % (handle)
            )

        self._handle = handle

        Sets the thread handle for the worker.
        
Sets the thread handle for the worker.
Sets the thread handle for the worker .
def handle(self, handle):
        if handle is None:
            self._handle = None
            return
        if handle is not None and not isinstance(handle, threading.Thread):
            raise TypeError(
                'thread handle must be a threading.Thread: %r' % (handle)
            )
        self._handle = handle
def handle ( self , handle ) : if handle is None : self . _handle = None return if handle is not None and not isinstance ( handle , threading . Thread ) : raise TypeError ( 'thread handle must be a threading.Thread: %r' % ( handle ) ) self . _handle = handle
Sets the thread handle for the worker.
Sets the thread handle for the worker .
'''
        Sets the thread handle for the worker.
        ''' # clear state
self
handle