async def run_sync_task(func, *args):
    """Run a synchronous function as an async background task.

    Args:
        func: a synchronous callable
        *args: function arguments

    Returns:
        the function's return value(s)
    """
    loop = asyncio.get_running_loop()
    return await loop.run_in_executor(_get_sync_task_executor(), func, *args)
Run a synchronous function as an async background task.

    Args:
        func: a synchronous callable
        *args: function arguments

    Returns:
        the function's return value(s)
    
fiftyone/core/utils.py