class_docstr: A variant of threading.The timer that is daemonized
class_docstr_tok: ["A","variant","of","threading.The","timer","that","is","daemonized"]
code: def __init__(self, interval, function, args=None, kwargs=None):
      threading.Thread.__init__(self, daemon=True)
      self.interval = interval
      self.function = function
      self.args = args if args is not None else []
      self.kwargs = kwargs if kwargs is not None else {}
      self.finished = threading.Event()
  
imports: import contextlib
  import datetime
  from itertools import chain
  import os
  import time
  import threading
  from snakemake.logging import logger
label_desc: Use image node_id 1 to create a new DaemonTimer object from inherited base classes: threading with example: obj = DaemonTimer(interval, function, args, kwargs)