(thread: threading.Thread)
| 42 | |
| 43 | @staticmethod |
| 44 | def _get_task_id(thread: threading.Thread): |
| 45 | tname = getattr(thread, '_target', 'task') |
| 46 | tname = getattr(tname, '__name__', tname) |
| 47 | return '%s-%s' % (tname, id(thread)) |
| 48 | |
| 49 | def __init__(self, target, session_info, on_task_command=None, on_session_close=None, loop=None): |
| 50 | """ |
no test coverage detected