class_docstr: Scheduling of periodic events
  
  Up to self._interval, schedule actions per second, above schedule events
  in self._interval second gaps.
class_docstr_tok: ["Scheduling","of","periodic","events","Up","to","self._interval",",","schedule","actions","per","second",",","above","schedule","events","in","self._interval","second","gaps","."]
code: def __init__(self, interval):
      self._times_called = 0
      self._interval = interval
      self._timer = None
      self._stopped = True
  
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 ScheduledPeriodicTimer object  with example: obj = ScheduledPeriodicTimer(interval)