parameters: (self, callback, *args, context=None)
return_statement: return handle
docstring: Like call_soon(), but thread-safe.
docstring_summary: Like call_soon(), but thread-safe.
docstring_tokens: Like call_soon () but thread - safe .
function: 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
function_tokens: 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