(self, callback, *args, context=None)
return handle
Like call_soon(), but thread-safe.
Like call_soon(), but thread-safe.
Like call_soon () but thread - safe .
def call_soon_threadsafe(self, callback, *args, context=None):
        """Like call_soon(), but thread-safe."""
        self._check_closed()
        if self._debug:
            self._check_callback(callback, 'call_soon_threadsafe')
        handle = self._call_soon(callback, args, context)
        if handle._source_traceback:
            del handle._source_traceback[-1]
        self._write_to_self()
        return handle
def call_soon_threadsafe ( self , callback , * args , context = None ) : self . _check_closed ( ) if self . _debug : self . _check_callback ( callback , 'call_soon_threadsafe' ) handle = self . _call_soon ( callback , args , context ) if handle . _source_traceback : del handle . _source_traceback [ - 1 ] self . _write_to_self ( ) return handle