code: def call_from_executor(self, callback, _max_postpone_until=None):
          
          # Append to list of pending callbacks.
          self._calls_from_executor.append(callback)
  
          # Set Windows event.
          windll.kernel32.SetEvent(self._event)
docs: Call this function in the main event loop.
          Similar to Twisted's ``callFromThread``.