(self, handle)
Add a callback to be invoked ASAP.

        The inherited behavior uses a self-pipe to wake up the event loop
        in a thread-safe fashion, which causes the logic in run_once() to
        empty the list of handlers that are awaiting invocation.

        CFEventLoop doesn't use run_once(), so adding handlers to
        self._ready results in handlers that aren't invoked. Instead, we
        create a 0-interval timer to invoke the callback as soon as
        possible.
Add a callback to be invoked ASAP.
Add a callback to be invoked ASAP .
def _add_callback(self, handle):
        """Add a callback to be invoked ASAP.

        The inherited behavior uses a self-pipe to wake up the event loop
        in a thread-safe fashion, which causes the logic in run_once() to
        empty the list of handlers that are awaiting invocation.

        CFEventLoop doesn't use run_once(), so adding handlers to
        self._ready results in handlers that aren't invoked. Instead, we
        create a 0-interval timer to invoke the callback as soon as
        possible.
        """
        if handle._cancelled:
            return
        self.call_soon(handle._callback, *handle._args)
def _add_callback ( self , handle ) : if handle . _cancelled : return self . call_soon ( handle . _callback , * handle . _args )