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","."]
docstr: Call to cancel any events
docstr_tok: ["Call","to","cancel","any","events"]
code: def cancel(self):
      """Call to cancel any events"""
      self._timer.cancel()
      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 5 for calling the ScheduledPeriodicTimer obj's underlying member method code with example usage: obj.cancel() without return types