(self, thread_id)
return self.thread_id == thread_id or self.thread_id.endswith('|' + thread_id)
By default, it must be in the same thread to be executed
By default, it must be in the same thread to be executed
By default it must be in the same thread to be executed
def can_be_executed_by(self, thread_id):
        '''By default, it must be in the same thread to be executed
        '''
        return self.thread_id == thread_id or self.thread_id.endswith('|' + thread_id)
def can_be_executed_by ( self , thread_id ) : return self . thread_id == thread_id or self . thread_id . endswith ( '|' + thread_id )