I\'m trying to return a boolean to a delegate of an SDK, but I need my function to wait for the callback of another function. I think it becomes clear what I want to do with