(self, delay)
This is run once we're on the Main thread.
This is run once we're on the Main thread.
This is run once we re on the Main thread .
def scheduleCallWithDelay_(self, delay):
        """
        This is run once we're on the Main thread.
        """
        assert NSThread.isMainThread(), "Call is not executing on the Main thread!"

        # There's no delay, just run the call now.
        if not delay:
            self.performCall()
            return

        # There's a delay, schedule it for later.
        self.performSelector_withObject_afterDelay_(
            self.performCall, None, delay,
        )
def scheduleCallWithDelay_ ( self , delay ) : assert NSThread . isMainThread ( ) , "Call is not executing on the Main thread!" # There's no delay, just run the call now. if not delay : self . performCall ( ) return # There's a delay, schedule it for later. self . performSelector_withObject_afterDelay_ ( self . performCall , None , delay , )