run_sync()
- Client.run_sync()
Runs the given sync function (optionally with arguments) on a separate thread.
- Parameters:
func (
Callable) – Sync function to run.*args (
any, optional) – Function argument.**kwargs (
any, optional) – Function extras arguments.
- Returns:
any– The function result.