Thread Module (thread)Get current task ID (thread.current_id)On this pageGet current task ID (thread.current_id) Declaration tid = thread.current_id() Returns tid Integer. The id of the current task. Example See chapter end