def sync(device=None):
    dev = device if device is not None else get_device()
    safe_call(backend.get().af_sync(dev))
Block until all the functions on the device have completed execution.
dataset/ETHPy150Open arrayfire/arrayfire-python/arrayfire/device.py/sync