'Returns True if all work before the most recent record has completed;
otherwise, returns False.'

def query(self):

    try:
        driver.cuEventQuery(self.handle)
    except CudaAPIError as e:
        if (e.code == enums.CUDA_ERROR_NOT_READY):
            return False
        else:
            raise
    else:
        return True
