facebook360_dep
Facebook360 Depth Estimation Pipeline
Public Member Functions | Public Attributes | List of all members
scripts.render.setup.RepeatedTimer Class Reference
Inheritance diagram for scripts.render.setup.RepeatedTimer:

Public Member Functions

def __init__ (self, interval, function, *args, **kwargs)
 
def start (self)
 
def stop (self)
 

Public Attributes

 interval
 
 function
 
 args
 
 kwargs
 
 is_running
 

Detailed Description

Executes a provided function at periodic intervals.

Attributes:
    *args: Variable length argument list for the function to be repeatedly executed.
    function (func): Arbitrary function to be repeatedly run.
    interval (int): Number of seconds between consecutive runs of the function.
    is_running (bool): Whether or not the function is currently running.
    **kwargs: Arbitrary keyword arguments for the function to be repeatedly executed.

Constructor & Destructor Documentation

◆ __init__()

def scripts.render.setup.RepeatedTimer.__init__ (   self,
  interval,
  function,
args,
**  kwargs 
)
Sets up a function to be repeatedly run in the background at fixed intervals.

Args:
    interval (int):  of seconds between consecutive runs of the function.
    function (func): Arbitrary function to be repeatedly run.
    *args: Variable length argument list.
    **kwargs: Arbitrary keyword arguments.

Member Function Documentation

◆ start()

def scripts.render.setup.RepeatedTimer.start (   self)
Starts the repeated execution asynchronously.

◆ stop()

def scripts.render.setup.RepeatedTimer.stop (   self)
Stops the repeated execution.

Member Data Documentation

◆ args

scripts.render.setup.RepeatedTimer.args

◆ function

scripts.render.setup.RepeatedTimer.function

◆ interval

scripts.render.setup.RepeatedTimer.interval

◆ is_running

scripts.render.setup.RepeatedTimer.is_running

◆ kwargs

scripts.render.setup.RepeatedTimer.kwargs

The documentation for this class was generated from the following file: