Eidolon
|
Inherits Thread.
Public Member Functions | |
def | __init__ (self, delay, target) |
def | stop (self) |
def | callTargetDelayed (self, args, kwargs) |
def | getCurrentDelay (self) |
def | decCurrentDelay (self) |
def | run (self) |
Static Public Member Functions | |
def | callGlobalTarget (delay, target, args, kwargs) |
def | removeGlobalTarget (target) |
Public Attributes | |
target | |
args | |
kwargs | |
delay | |
decDelayVal | |
currentDelay | |
evt | |
daemon | |
Static Public Attributes | |
globalDelayMap | |
Calls a target callable with the given args after a delay time has elapsed, which is reset to the full time if subsequent call request come before the call occurs. This ensures that a single call to the target happens even if multiple requests come in during the delay period, allowing for example update tasks to be scheduled when UI elements are manipulated and then deferred if further operations are performed soon after.
def __init__ | ( | self, | |
delay, | |||
target | |||
) |
|
static |
def callTargetDelayed | ( | self, | |
args, | |||
kwargs | |||
) |
def decCurrentDelay | ( | self | ) |
def getCurrentDelay | ( | self | ) |
|
static |
def run | ( | self | ) |
def stop | ( | self | ) |
args |
currentDelay |
daemon |
decDelayVal |
delay |
evt |
|
static |
kwargs |
target |