run_sync()

Client.run_sync()

Run the given sync function (optionally with arguments) on a separate thread.

Parameters:
  • func (Callable) – Sync function to run.

  • *args (any, optional) – Function arguments.

  • **kwargs (any, optional) – Function keyword arguments.

Returns:

any – The function result.